ImmutableArray<T>.IndexOf Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
| Name | Description |
|---|---|
| IndexOf(T, Int32, Int32, IEqualityComparer<T>) |
Pesquisa no array o item especificado. |
| IndexOf(T) |
Pesquisa no array o item especificado. |
| IndexOf(T, Int32) |
Pesquisa no array o item especificado. |
| IndexOf(T, Int32, IEqualityComparer<T>) |
Pesquisa no array o item especificado. |
| IndexOf(T, Int32, Int32) |
Pesquisa no array o item especificado. |
IndexOf(T, Int32, Int32, IEqualityComparer<T>)
Pesquisa no array o item especificado.
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);
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
Parâmetros
- item
- T
O item a procurar.
- startIndex
- Int32
O índice onde começar a pesquisa.
- count
- Int32
O número de elementos a pesquisar.
- equalityComparer
- IEqualityComparer<T>
O comparador de igualdade a usar na pesquisa.
Devoluções
A posição do índice baseado em zero do item se for encontrado, ou -1 se não for.
Implementações
Aplica-se a
IndexOf(T)
Pesquisa no array o item especificado.
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
Parâmetros
- item
- T
O item a procurar.
Devoluções
A posição do índice baseado em zero do item se for encontrado, ou -1 se não for.
Implementações
Aplica-se a
IndexOf(T, Int32)
Pesquisa no array o item especificado.
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
Parâmetros
- item
- T
O item a procurar.
- startIndex
- Int32
O índice onde começar a pesquisa.
Devoluções
A posição do índice baseado em zero do item se for encontrado, ou -1 se não for.
Aplica-se a
IndexOf(T, Int32, IEqualityComparer<T>)
Pesquisa no array o item especificado.
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
Parâmetros
- item
- T
O item a procurar.
- startIndex
- Int32
O índice onde começar a pesquisa.
- equalityComparer
- IEqualityComparer<T>
O comparador de igualdade a usar na pesquisa.
Devoluções
A posição do índice baseado em zero do item se for encontrado, ou -1 se não for.
Aplica-se a
IndexOf(T, Int32, Int32)
Pesquisa no array o item especificado.
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
Parâmetros
- item
- T
O item a procurar.
- startIndex
- Int32
O índice onde começar a pesquisa.
- count
- Int32
O número de elementos a pesquisar.
Devoluções
A posição do índice baseado em zero do item se for encontrado, ou -1 se não for.