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!

DirectoryEntryCollection.Find (String, String)

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;

Parameters

name
The name of the child you are looking for.
schemaClassName
The type of the child you are looking for.

Return Value

A DirectoryEntry that represents the child you found.

Exceptions

Exception Type Condition
COMException The given child entry does not exist. The associated error code is E_ADS_UNKNOWN_OBJECT.

See Also

DirectoryEntryCollection Class | DirectoryEntryCollection Members | System.DirectoryServices Namespace | DirectoryEntryCollection.Find Overload List | DirectoryEntry