ReplicationCursorCollection.IndexOf(ReplicationCursor) メソッド

定義

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

public:
 int IndexOf(System::DirectoryServices::ActiveDirectory::ReplicationCursor ^ cursor);
public int IndexOf(System.DirectoryServices.ActiveDirectory.ReplicationCursor cursor);
member this.IndexOf : System.DirectoryServices.ActiveDirectory.ReplicationCursor -> int
Public Function IndexOf (cursor As ReplicationCursor) As Integer

パラメーター

cursor
ReplicationCursor

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

返品

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

例外

基になるディレクトリ サービスを呼び出すと、エラーが発生しました。

cursor パラメーターはnull

適用対象

こちらもご覧ください