Creates a copy of this entry as a child of the given parent.
[Visual Basic] Overloads Public Function CopyTo( _ ByVal newParent As DirectoryEntry _ ) As DirectoryEntry [C#] public DirectoryEntry CopyTo( DirectoryEntry newParent ); [C++] public: DirectoryEntry* CopyTo( DirectoryEntry* newParent ); [JScript] public function CopyTo( newParent : DirectoryEntry ) : DirectoryEntry;
A copy of this entry as a child of the given parent.
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.CopyTo Overload List