SearchResultCollection.Contains(SearchResult) 方法

定義

決定指定的 SearchResult 物件是否在這個集合中。Determines if a specified SearchResult object is in this collection.

public:
 bool Contains(System::DirectoryServices::SearchResult ^ result);
public bool Contains (System.DirectoryServices.SearchResult result);
member this.Contains : System.DirectoryServices.SearchResult -> bool
Public Function Contains (result As SearchResult) As Boolean

參數

result
SearchResult

所要尋找的 SearchResult 物件。The SearchResult object to find.

傳回

如果指定的屬性隸屬於這個集合,則為 true;否則為 falsetrue if the specified property belongs to this collection; otherwise, false.

適用於