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