MatchCollection.IList<Match>.IndexOf(Match) Metoda

Definicja

Określa indeks określonego elementu w kolekcji.

 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

Parametry

item
Match

Obiekt do zlokalizowania w kolekcji.

Zwraca

Int32

Indeks, jeśli zostanie znaleziony item na liście; w przeciwnym razie -1.

Implementuje

Uwagi

Jeśli obiekt występuje wiele razy na liście, IndexOf metoda zawsze zwraca pierwsze znalezione wystąpienie.

Dotyczy