DirectoryEntry.CopyTo DirectoryEntry.CopyTo DirectoryEntry.CopyTo DirectoryEntry.CopyTo Method

Definición

Crea una copia de esta entrada.Creates a copy of this entry.

Sobrecargas

CopyTo(DirectoryEntry) CopyTo(DirectoryEntry) CopyTo(DirectoryEntry) CopyTo(DirectoryEntry)

Crea una copia de esta entrada como entrada secundaria de la entrada principal especificada.Creates a copy of this entry as a child of the specified parent.

CopyTo(DirectoryEntry, String) CopyTo(DirectoryEntry, String) CopyTo(DirectoryEntry, String) CopyTo(DirectoryEntry, String)

Crea una copia de este objeto DirectoryEntry como elemento secundario del objeto DirectoryEntry primario, con el nuevo nombre especificado.Creates a copy of this DirectoryEntry object, as a child of the specified parent DirectoryEntry object, with the specified new name.

CopyTo(DirectoryEntry) CopyTo(DirectoryEntry) CopyTo(DirectoryEntry) CopyTo(DirectoryEntry)

Crea una copia de esta entrada como entrada secundaria de la entrada principal especificada.Creates a copy of this entry as a child of the specified parent.

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

Parámetros

newParent
DirectoryEntry DirectoryEntry DirectoryEntry DirectoryEntry

Nombre distintivo del objeto DirectoryEntry que será el elemento primario de la copia que se va a crear.The distinguished name of the DirectoryEntry object that will be the parent for the copy that is being created.

Devoluciones

Objeto DirectoryEntry que representa la copia de esta entrada como un elemento secundario del nuevo elemento primario.A DirectoryEntry object that represents the copy of this entry as a child of the new parent.

Excepciones

Comentarios

Si UsePropertyCache es true, llame a CommitChanges en el nuevo objeto para realizar la copia permanentes.If UsePropertyCache is true, call CommitChanges on the new object to make the copy permanent.

El proveedor de protocolo ligero de acceso a directorios (LDAP) no admite actualmente la CopyTo(DirectoryEntry) método.The Lightweight Directory Access Protocol (LDAP) provider does not currently support the CopyTo(DirectoryEntry) method.

Seguridad

DirectoryServicesPermission
Para realizar una copia del elemento especificado DirectoryEntry objeto.To make a copy of the specified DirectoryEntry object.

CopyTo(DirectoryEntry, String) CopyTo(DirectoryEntry, String) CopyTo(DirectoryEntry, String) CopyTo(DirectoryEntry, String)

Crea una copia de este objeto DirectoryEntry como elemento secundario del objeto DirectoryEntry primario, con el nuevo nombre especificado.Creates a copy of this DirectoryEntry object, as a child of the specified parent DirectoryEntry object, with the specified new name.

public:
 System::DirectoryServices::DirectoryEntry ^ CopyTo(System::DirectoryServices::DirectoryEntry ^ newParent, System::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

Parámetros

newParent
DirectoryEntry DirectoryEntry DirectoryEntry DirectoryEntry

DN del objeto DirectoryEntry que será el elemento primario de la copia que se va a crear.The DN of the DirectoryEntry object that will be the parent for the copy that is being created.

newName
String String String String

Nombre de la copia de esta entrada.The name of the copy of this entry.

Devoluciones

Copia de esta entrada con otro nombre como entrada secundaria de la entrada principal especificada.A renamed copy of this entry as a child of the specified parent.

Excepciones

El objeto DirectoryEntry que se ha especificado no es un contenedor.The specified DirectoryEntry object is not a container.

Comentarios

El proveedor de protocolo ligero de acceso a directorios (LDAP) no admite actualmente este método.The Lightweight Directory Access Protocol (LDAP) provider does not currently support this method.

Si UsePropertyCache es true, llame a CommitChanges en el nuevo objeto para realizar la copia permanentes.If UsePropertyCache is true, call CommitChanges on the new object to make the copy permanent.

Seguridad

DirectoryServicesPermission
Para realizar una copia de la entrada.To make a copy of the entry.

Consulte también:

Se aplica a