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.CopyTo (DirectoryEntry)

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;

Parameters

newParent
The parent DirectoryEntry.

Return Value

A copy of this entry as a child of the given parent.

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.CopyTo Overload List