DirectoryEntry.CopyTo Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Crée une copie de cette entrée.
Surcharges
| Nom | Description |
|---|---|
| CopyTo(DirectoryEntry) |
Crée une copie de cette entrée en tant qu’enfant du parent spécifié. |
| CopyTo(DirectoryEntry, String) |
Crée une copie de cet DirectoryEntry objet, en tant qu’enfant de l’objet parent DirectoryEntry spécifié, avec le nouveau nom spécifié. |
CopyTo(DirectoryEntry)
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
Crée une copie de cette entrée en tant qu’enfant du parent spécifié.
public:
System::DirectoryServices::DirectoryEntry ^ CopyTo(System::DirectoryServices::DirectoryEntry ^ newParent);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent);
member this.CopyTo : System.DirectoryServices.DirectoryEntry -> System.DirectoryServices.DirectoryEntry
Public Function CopyTo (newParent As DirectoryEntry) As DirectoryEntry
Paramètres
- newParent
- DirectoryEntry
Nom unique de l’objet DirectoryEntry qui sera le parent de la copie en cours de création.
Retours
Objet DirectoryEntry qui représente la copie de cette entrée en tant qu’enfant du nouveau parent.
Exceptions
Le conteneur spécifié DirectoryEntry n’est pas un conteneur.
Remarques
Si UsePropertyCache c’est truele cas, appelez CommitChanges le nouvel objet pour rendre la copie permanente.
Le fournisseur LDAP (Lightweight Directory Access Protocol) ne prend actuellement pas en charge la CopyTo(DirectoryEntry) méthode.
S’applique à
CopyTo(DirectoryEntry, String)
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
- Source:
- DirectoryEntry.cs
Crée une copie de cet DirectoryEntry objet, en tant qu’enfant de l’objet parent DirectoryEntry spécifié, avec le nouveau nom spécifié.
public:
System::DirectoryServices::DirectoryEntry ^ CopyTo(System::DirectoryServices::DirectoryEntry ^ newParent, System::String ^ newName);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent, string? newName);
public System.DirectoryServices.DirectoryEntry CopyTo(System.DirectoryServices.DirectoryEntry newParent, string newName);
member this.CopyTo : System.DirectoryServices.DirectoryEntry * string -> System.DirectoryServices.DirectoryEntry
Public Function CopyTo (newParent As DirectoryEntry, newName As String) As DirectoryEntry
Paramètres
- newParent
- DirectoryEntry
Nom de domaine de l’objet DirectoryEntry qui sera le parent de la copie en cours de création.
- newName
- String
Nom de la copie de cette entrée.
Retours
Copie renommée de cette entrée en tant qu’enfant du parent spécifié.
Exceptions
L’objet spécifié DirectoryEntry n’est pas un conteneur.
Remarques
Le fournisseur LDAP (Lightweight Directory Access Protocol) ne prend actuellement pas en charge cette méthode.
Si UsePropertyCache c’est truele cas, appelez CommitChanges le nouvel objet pour rendre la copie permanente.