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 オブジェクト。

戻り値

Int32

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

適用対象