編輯

共用方式為


SearchResultCollection.IndexOf(SearchResult) Method

Definition

Returns the index of the first occurrence of the specified SearchResult object in this collection.

public:
 int IndexOf(System::DirectoryServices::SearchResult ^ result);
public int IndexOf (System.DirectoryServices.SearchResult result);
member this.IndexOf : System.DirectoryServices.SearchResult -> int
Public Function IndexOf (result As SearchResult) As Integer

Parameters

result
SearchResult

The SearchResult object to search for in this collection.

Returns

The zero-based index of the first matching object. Returns -1 if no member of this collection is identical to the SearchResult object.

Applies to