ImmutableArray<T>.IndexOf Metoda

Definice

Přetížení

Name Description
IndexOf(T)

Vyhledá pole pro zadanou položku.

IndexOf(T, Int32)

Vyhledá pole pro zadanou položku.

IndexOf(T, Int32, IEqualityComparer<T>)

Vyhledá pole pro zadanou položku.

IndexOf(T, Int32, Int32)

Vyhledá pole pro zadanou položku.

IndexOf(T, Int32, Int32, IEqualityComparer<T>)

Vyhledá pole pro zadanou položku.

IndexOf(T)

Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs

Vyhledá pole pro zadanou položku.

public:
 virtual int IndexOf(T item);
public int IndexOf(T item);
abstract member IndexOf : 'T -> int
override this.IndexOf : 'T -> int
Public Function IndexOf (item As T) As Integer

Parametry

item
T

Položka, kterou chcete vyhledat.

Návraty

Pozice indexu na základě nuly položky, pokud je nalezena, nebo -1, pokud není.

Implementuje

Platí pro

IndexOf(T, Int32)

Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs

Vyhledá pole pro zadanou položku.

public:
 int IndexOf(T item, int startIndex);
public int IndexOf(T item, int startIndex);
member this.IndexOf : 'T * int -> int
Public Function IndexOf (item As T, startIndex As Integer) As Integer

Parametry

item
T

Položka, kterou chcete vyhledat.

startIndex
Int32

Index, na kterém se má vyhledávání zahájit.

Návraty

Pozice indexu na základě nuly položky, pokud je nalezena, nebo -1, pokud není.

Platí pro

IndexOf(T, Int32, IEqualityComparer<T>)

Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs

Vyhledá pole pro zadanou položku.

public:
 int IndexOf(T item, int startIndex, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int IndexOf(T item, int startIndex, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public int IndexOf(T item, int startIndex, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
member this.IndexOf : 'T * int * System.Collections.Generic.IEqualityComparer<'T> -> int
Public Function IndexOf (item As T, startIndex As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer

Parametry

item
T

Položka, kterou chcete vyhledat.

startIndex
Int32

Index, na kterém se má vyhledávání zahájit.

equalityComparer
IEqualityComparer<T>

Porovnávač rovnosti, který se má použít ve vyhledávání.

Návraty

Pozice indexu na základě nuly položky, pokud je nalezena, nebo -1, pokud není.

Platí pro

IndexOf(T, Int32, Int32)

Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs

Vyhledá pole pro zadanou položku.

public:
 int IndexOf(T item, int startIndex, int count);
public int IndexOf(T item, int startIndex, int count);
member this.IndexOf : 'T * int * int -> int
Public Function IndexOf (item As T, startIndex As Integer, count As Integer) As Integer

Parametry

item
T

Položka, kterou chcete vyhledat.

startIndex
Int32

Index, na kterém se má vyhledávání zahájit.

count
Int32

Počet prvků, které se mají prohledávat.

Návraty

Pozice indexu na základě nuly položky, pokud je nalezena, nebo -1, pokud není.

Platí pro

IndexOf(T, Int32, Int32, IEqualityComparer<T>)

Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs
Zdroj:
ImmutableArray_1.cs

Vyhledá pole pro zadanou položku.

public:
 virtual int IndexOf(T item, int startIndex, int count, System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer);
public int IndexOf(T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T> equalityComparer);
public int IndexOf(T item, int startIndex, int count, System.Collections.Generic.IEqualityComparer<T>? equalityComparer);
abstract member IndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
override this.IndexOf : 'T * int * int * System.Collections.Generic.IEqualityComparer<'T> -> int
Public Function IndexOf (item As T, startIndex As Integer, count As Integer, equalityComparer As IEqualityComparer(Of T)) As Integer

Parametry

item
T

Položka, kterou chcete vyhledat.

startIndex
Int32

Index, na kterém se má vyhledávání zahájit.

count
Int32

Počet prvků, které se mají prohledávat.

equalityComparer
IEqualityComparer<T>

Porovnávač rovnosti, který se má použít ve vyhledávání.

Návraty

Pozice indexu na základě nuly položky, pokud je nalezena, nebo -1, pokud není.

Implementuje

Platí pro