CaptureCollection.IList<Capture>.IndexOf(Capture) Metodo

Definizione

Determina l'indice di un elemento specifico dell'insieme.

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

Parametri

item
Capture

Oggetto da individuare nella raccolta.

Restituisce

Indice di item, se presente nell'elenco; in caso contrario, -1.

Implementazioni

Commenti

Se un oggetto è presente più volte nell'elenco, il metodo IndexOf restituisce sempre la prima istanza incontrata.

Si applica a