AsyncEnumerable.Index<TSource>(IAsyncEnumerable<TSource>) Methode

Definition

Gibt eine Aufzählung zurück, die den Index des Elements in ein Tupel einschließt.

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

Typparameter

TSource

Der Typ der Elemente von source.

Parameter

source
IAsyncEnumerable<TSource>

Die Quelle, die aufgezählt werden kann, um die Elemente bereitzustellen.

Gibt zurück

Eine Aufzählung, die jeden Elementindex in ein Tupel einschließt.

Ausnahmen

source ist null.

Gilt für: