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!

DirectorySearcher.FindOne

Executes the search. If the search returns more than one entry, only the first one is returned. If no entries were find matching the search criteria, null is returned.

[Visual Basic]
Public Function FindOne() As SearchResultsEntry
[C#]
public SearchResultsEntry FindOne();
[C++]
public: SearchResultsEntry* FindOne();
[JScript]
public function FindOne() : SearchResultsEntry;

See Also

DirectorySearcher Class | DirectorySearcher Members | System.DirectoryServices Namespace