Edytuj

Udostępnij za pośrednictwem


DirectoryEntry.MoveTo Method

Definition

Moves this DirectoryEntry.

Overloads

MoveTo(DirectoryEntry)

Moves this DirectoryEntry object to the specified parent.

MoveTo(DirectoryEntry, String)

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

MoveTo(DirectoryEntry)

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

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

The parent to which you want to move this entry.

Exceptions

The specified DirectoryEntry is not a container.

Remarks

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

See also

Applies to

MoveTo(DirectoryEntry, String)

Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs
Source:
DirectoryEntry.cs

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);
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

The parent to which you want to move this entry.

newName
String

The new name of this entry.

Exceptions

The specified DirectoryEntry is not a container.

Remarks

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

See also

Applies to