言語

SearchResultCollection.IndexOf(SearchResult) メソッド

定義

このコレクション内の指定した SearchResult オブジェクトの最初の出現位置のインデックスを返します。

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

パラメーター

result
SearchResult

このコレクション内で検索する SearchResult オブジェクト。

返品

最初に一致するオブジェクトの 0 から始まるインデックス。 このコレクションのメンバーが SearchResult オブジェクトと同じでない場合は、-1 を返します。

適用対象