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

Definición

Determina el índice de un elemento específico de la colección.

 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

Objeto que se va a buscar en la colección.

Devoluciones

Int32

Devuelve el índice de item si se encuentra en la lista; de lo contrario, devuelve -1.

Implementaciones

Comentarios

Si un objeto aparece varias veces en la lista, el método IndexOf siempre devolverá la primera instancia encontrada.

Se aplica a