Returns the child with the given name.
[Visual Basic] Overloads Public Function Find( _ ByVal name As String _ ) As DirectoryEntry [C#] public DirectoryEntry Find( string name ); [C++] public: DirectoryEntry* Find( String* name ); [JScript] public function Find( name : String ) : DirectoryEntry;
A DirectoryEntry that represents the child that was found.
Exception Type | Condition |
---|---|
COMException | The given child entry does not exist. The associated error code is E_ADS_UNKNOWN_OBJECT. |
If children of different types have the same name, the first matching child is returned.
DirectoryEntryCollection Class | DirectoryEntryCollection Members | System.DirectoryServices Namespace | DirectoryEntryCollection.Find Overload List | DirectoryEntry