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

Definition

Moves this DirectoryEntry.

Overloads

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

Moves this DirectoryEntry object to the specified parent.

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

Moves this DirectoryEntry object to the specified parent and changes its name to the specified value.

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

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)

Parameters

newParent
DirectoryEntry DirectoryEntry DirectoryEntry DirectoryEntry

The parent to which you want to move this entry.

Exceptions

Remarks

If UsePropertyCache is true, call the CommitChanges method on the new object to make the move permanent.

Security

DirectoryServicesPermission
To move the entry.

See also

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

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)

Parameters

newParent
DirectoryEntry DirectoryEntry DirectoryEntry DirectoryEntry

The parent to which you want to move this entry.

newName
String String String String

The new name of this entry.

Exceptions

Remarks

If UsePropertyCache is true, call CommitChanges on the new object to make the move permanent.

See also

Applies to