ImmutableArray<T>.IndexOf Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Sobrecargas
| Nome | Description |
|---|---|
| IndexOf(T, Int32, Int32, IEqualityComparer<T>) |
Pesquisa a matriz para o item especificado. |
| IndexOf(T) |
Pesquisa a matriz para o item especificado. |
| IndexOf(T, Int32) |
Pesquisa a matriz para o item especificado. |
| IndexOf(T, Int32, IEqualityComparer<T>) |
Pesquisa a matriz para o item especificado. |
| IndexOf(T, Int32, Int32) |
Pesquisa a matriz para o item especificado. |
IndexOf(T, Int32, Int32, IEqualityComparer<T>)
Pesquisa a matriz para 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 ser pesquisado.
- startIndex
- Int32
O índice no qual iniciar a pesquisa.
- count
- Int32
O número de elementos a serem pesquisados.
- equalityComparer
- IEqualityComparer<T>
O comparador de igualdade a ser usado na pesquisa.
Retornos
A posição do índice baseado em zero do item se ele for encontrado ou -1 se não for.
Implementações
Aplica-se a
IndexOf(T)
Pesquisa a matriz para 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 ser pesquisado.
Retornos
A posição do índice baseado em zero do item se ele for encontrado ou -1 se não for.
Implementações
Aplica-se a
IndexOf(T, Int32)
Pesquisa a matriz para 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 ser pesquisado.
- startIndex
- Int32
O índice no qual iniciar a pesquisa.
Retornos
A posição do índice baseado em zero do item se ele for encontrado ou -1 se não for.
Aplica-se a
IndexOf(T, Int32, IEqualityComparer<T>)
Pesquisa a matriz para 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 ser pesquisado.
- startIndex
- Int32
O índice no qual iniciar a pesquisa.
- equalityComparer
- IEqualityComparer<T>
O comparador de igualdade a ser usado na pesquisa.
Retornos
A posição do índice baseado em zero do item se ele for encontrado ou -1 se não for.
Aplica-se a
IndexOf(T, Int32, Int32)
Pesquisa a matriz para 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 ser pesquisado.
- startIndex
- Int32
O índice no qual iniciar a pesquisa.
- count
- Int32
O número de elementos a serem pesquisados.
Retornos
A posição do índice baseado em zero do item se ele for encontrado ou -1 se não for.