DirectoryEntry.MoveTo DirectoryEntry.MoveTo DirectoryEntry.MoveTo DirectoryEntry.MoveTo Method

Definición

Mueve este objeto DirectoryEntry.Moves this DirectoryEntry.

Sobrecargas

MoveTo(DirectoryEntry) MoveTo(DirectoryEntry) MoveTo(DirectoryEntry) MoveTo(DirectoryEntry)

Mueve este objeto DirectoryEntry al elemento primario especificado.Moves this DirectoryEntry object to the specified parent.

MoveTo(DirectoryEntry, String) MoveTo(DirectoryEntry, String) MoveTo(DirectoryEntry, String) MoveTo(DirectoryEntry, String)

Mueve este objeto DirectoryEntry al elemento primario especificado y cambia su nombre al valor especificado.Moves this DirectoryEntry object to the specified parent and changes its name to the specified value.

MoveTo(DirectoryEntry) MoveTo(DirectoryEntry) MoveTo(DirectoryEntry) MoveTo(DirectoryEntry)

Mueve este objeto DirectoryEntry al elemento primario especificado.Moves this DirectoryEntry object to the specified parent.

public:
 void MoveTo(System::DirectoryServices::DirectoryEntry ^ newParent);
public void MoveTo (System.DirectoryServices.DirectoryEntry newParent);
member this.MoveTo : System.DirectoryServices.DirectoryEntry -> unit
Public Sub MoveTo (newParent As DirectoryEntry)

Parámetros

newParent
DirectoryEntry DirectoryEntry DirectoryEntry DirectoryEntry

Entrada principal donde desea desplazar esta entrada.The parent to which you want to move this entry.

Excepciones

Comentarios

Si UsePropertyCache es true, llame a la CommitChanges método en el nuevo objeto para que el desplazamiento sea permanente.If UsePropertyCache is true, call the CommitChanges method on the new object to make the move permanent.

Seguridad

DirectoryServicesPermission
Para mover la entrada.To move the entry.

Consulte también:

MoveTo(DirectoryEntry, String) MoveTo(DirectoryEntry, String) MoveTo(DirectoryEntry, String) MoveTo(DirectoryEntry, String)

Mueve este objeto DirectoryEntry al elemento primario especificado y cambia su nombre al valor especificado.Moves this DirectoryEntry object to the specified parent and changes its name to the specified value.

public:
 void MoveTo(System::DirectoryServices::DirectoryEntry ^ newParent, System::String ^ newName);
public void MoveTo (System.DirectoryServices.DirectoryEntry newParent, string newName);
member this.MoveTo : System.DirectoryServices.DirectoryEntry * string -> unit
Public Sub MoveTo (newParent As DirectoryEntry, newName As String)

Parámetros

newParent
DirectoryEntry DirectoryEntry DirectoryEntry DirectoryEntry

Entrada principal donde desea desplazar esta entrada.The parent to which you want to move this entry.

newName
String String String String

Nuevo nombre de la entrada.The new name of this entry.

Excepciones

Comentarios

Si UsePropertyCache es true, llame a CommitChanges en el nuevo objeto para que el desplazamiento sea permanente.If UsePropertyCache is true, call CommitChanges on the new object to make the move permanent.

Consulte también:

Se aplica a