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 );
Exception Type | Condition |
---|---|
COMException | The given DirectoryEntry does not exist. The associated error code is E_ADS_UNKNOWN_OBJECT. |
DirectoryEntry Class | DirectoryEntry Members | System.DirectoryServices Namespace | DirectoryEntry.MoveTo Overload List