StringValues.IList<String>.IndexOf(String) Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Zwraca indeks oparty na zerze pierwszego wystąpienia elementu w elemencie StringValues.
virtual int System.Collections.Generic.IList<System.String>.IndexOf(System::String ^ item) = System::Collections::Generic::IList<System::String ^>::IndexOf;
int IList<string>.IndexOf (string item);
int IList<string>.IndexOf (string? item);
abstract member System.Collections.Generic.IList<System.String>.IndexOf : string -> int
override this.System.Collections.Generic.IList<System.String>.IndexOf : string -> int
Function IndexOf (item As String) As Integer Implements IList(Of String).IndexOf
Parametry
- item
- String
Ciąg do zlokalizowania w obiekcie StringValues.
Zwraca
Indeks oparty na zerze pierwszego wystąpienia item
elementu w obiekcie StringValues, jeśli zostanie znaleziony; w przeciwnym razie wartość -1.