ServiceModelConfigurationElementCollection<ConfigurationElementType>.IndexOf 메서드

정의

이 컬렉션에서 구성 요소가 처음 나타나는 0부터 시작하는 인덱스를 반환합니다.

public:
 int IndexOf(ConfigurationElementType element);
public int IndexOf (ConfigurationElementType element);
member this.IndexOf : 'ConfigurationElementType -> int
Public Function IndexOf (element As ConfigurationElementType) As Integer

매개 변수

element
ConfigurationElementType

컬렉션에서 찾을 구성 요소입니다.

반환

Int32

컬렉션에 있으면 element의 인덱스이고, 그렇지 않으면 -1입니다.

예외

element이(가) null인 경우

적용 대상