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인 경우

적용 대상

추가 정보