NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DirectoryEntry.MoveTo (DirectoryEntry)

Moves this entry to the given parent.

[Visual Basic]
Overloads Public Sub MoveTo( _
   ByVal newParent As DirectoryEntry _
)
[C#]
public void MoveTo(
   DirectoryEntry newParent
);
[C++]
public: void MoveTo(
   DirectoryEntry* newParent
);
[JScript]
public function MoveTo(
   newParent : DirectoryEntry
);

Parameters

newParent
The parent to which you want to move this entry.

Exceptions

Exception Type Condition
COMException The given DirectoryEntry does not exist. The associated error code is E_ADS_UNKNOWN_OBJECT.

See Also

DirectoryEntry Class | DirectoryEntry Members | System.DirectoryServices Namespace | DirectoryEntry.MoveTo Overload List