Share via


MatchCollection.IList<Match>.IndexOf(Match) 메서드

정의

컬렉션에 있는 특정 항목의 인덱스를 확인합니다.

 virtual int System.Collections.Generic.IList<System.Text.RegularExpressions.Match>.IndexOf(System::Text::RegularExpressions::Match ^ item) = System::Collections::Generic::IList<System::Text::RegularExpressions::Match ^>::IndexOf;
int IList<Match>.IndexOf (System.Text.RegularExpressions.Match item);
abstract member System.Collections.Generic.IList<System.Text.RegularExpressions.Match>.IndexOf : System.Text.RegularExpressions.Match -> int
override this.System.Collections.Generic.IList<System.Text.RegularExpressions.Match>.IndexOf : System.Text.RegularExpressions.Match -> int
Function IndexOf (item As Match) As Integer Implements IList(Of Match).IndexOf

매개 변수

item
Match

컬렉션에서 찾을 개체입니다.

반환

Int32

목록에 있으면 item의 인덱스이고, 그렇지 않으면 -1입니다.

구현

설명

목록에 개체가 여러 번 나타나면 IndexOf 메서드는 항상 발견한 첫 번째 인스턴스를 반환합니다.

적용 대상