Partilhar via


Queryable.Index<TSource>(IQueryable<TSource>) Método

Definição

Retornar índice e o item associado.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Linq::IQueryable<ValueTuple<int, TSource>> ^ Index(System::Linq::IQueryable<TSource> ^ source);
public static System.Linq.IQueryable<(int Index, TSource Item)> Index<TSource> (this System.Linq.IQueryable<TSource> source);
static member Index : System.Linq.IQueryable<'Source> -> System.Linq.IQueryable<ValueTuple<int, 'Source>>
<Extension()>
Public Function Index(Of TSource) (source As IQueryable(Of TSource)) As IQueryable(Of ValueTuple(Of Integer, TSource))

Parâmetros de tipo

TSource

O tipo dos elementos de source.

Parâmetros

source
IQueryable<TSource>

Um IQueryable<T> do qual retornar um elemento.

Retornos

Exceções

source é null.

Aplica-se a