AsyncEnumerable.Index<TSource>(IAsyncEnumerable<TSource>) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
要素のインデックスをタプルに組み込む列挙可能な値を返します。
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))
型パラメーター
- TSource
sourceの要素の型。
パラメーター
- source
- IAsyncEnumerable<TSource>
要素を提供するソース列挙可能。
返品
各要素インデックスをタプルに組み込む列挙可能。
例外
source は nullです。