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)

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;

Parameters

name
The name of the child you are looking for.

Return Value

A DirectoryEntry that represents the child that was found.

Exceptions

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

Remarks

If children of different types have the same name, the first matching child is returned.

See Also

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