DirectorySearcher.FindOne Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Executes the search and returns only the first entry that is found.
public:
System::DirectoryServices::SearchResult ^ FindOne();
public System.DirectoryServices.SearchResult? FindOne ();
public System.DirectoryServices.SearchResult FindOne ();
member this.FindOne : unit -> System.DirectoryServices.SearchResult
Public Function FindOne () As SearchResult
Returns
A SearchResult object that contains the first entry that is found during the search.
Remarks
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.
Applies to
See also
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.