Language

AttributeMetadataCollection.IndexOf(AttributeMetadata) メソッド

定義

このコレクション内の指定した AttributeMetadata オブジェクトの最初の出現箇所を返します。

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

パラメーター

metadata
AttributeMetadata

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

戻り値

最初に一致する項目の 0 から始まるインデックス。 このコレクションのメンバーが metadata と同じでない場合は -1。

例外

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

metadata は nullです。

適用対象

関連項目