次の方法で共有


SearchResultCollection.IndexOf メソッド

このコレクション内での指定した SearchResult オブジェクトの位置を示すインデックスを取得します。

Public Function IndexOf( _
   ByVal result As SearchResult _) As Integer
[C#]
public int IndexOf(SearchResultresult);
[C++]
public: int IndexOf(SearchResult* result);
[JScript]
public function IndexOf(
   result : SearchResult) : int;

パラメータ

戻り値

指定した SearchResult オブジェクトの 0 から始まるインデックス番号。オブジェクトが見つからない場合は、-1 が返されます。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

.NET Framework セキュリティ:

参照

SearchResultCollection クラス | SearchResultCollection メンバ | System.DirectoryServices 名前空間