Queryable.Index<TSource>(IQueryable<TSource>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Return index and the associated item.
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))
Type Parameters
- TSource
The type of the elements of source
.
Parameters
- source
- IQueryable<TSource>
An IQueryable<T> to return an element from.
Returns
An enumerable that incorporates each element index into a tuple.
Exceptions
source
is null
.
Applies to
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.