DirectorySearcher::FindOne Method ()
.NET Framework (current version)
Executes the search and returns only the first entry that is found.
Assembly: System.DirectoryServices (in System.DirectoryServices.dll)
Return Value
Type: System.DirectoryServices::SearchResult^A SearchResult object that contains the first entry that is found during the search.
If more than one entry is found during the search, only the first entry is returned. If no entries are found to match the search criteria, a null reference (Nothing in Visual Basic) is returned.
.NET Framework
Available since 1.1
Available since 1.1
Show: