MatchCollection.IList<Match>.IndexOf(Match) Método

Definição

Determina o índice de um item específico na coleção.

 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

Parâmetros

item
Match

O objeto a ser localizado na coleção.

Retornos

Int32

O índice de item se encontrado na lista; caso contrário, -1.

Implementações

Comentários

Se um objeto ocorrer várias vezes na lista, o IndexOf método sempre retornará a primeira instância encontrada.

Aplica-se a