AsyncEnumerable.Prepend<TSource> メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
シーケンスの先頭に値を追加します。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::IAsyncEnumerable<TSource> ^ Prepend(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, TSource element);
public static System.Collections.Generic.IAsyncEnumerable<TSource> Prepend<TSource>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, TSource element);
static member Prepend : System.Collections.Generic.IAsyncEnumerable<'Source> * 'Source -> System.Collections.Generic.IAsyncEnumerable<'Source>
<Extension()>
Public Function Prepend(Of TSource) (source As IAsyncEnumerable(Of TSource), element As TSource) As IAsyncEnumerable(Of TSource)
型パラメーター
- TSource
ソースの要素の型。
パラメーター
- source
- IAsyncEnumerable<TSource>
値のシーケンス。
- element
- TSource
ソースの先頭に追加する値。
返品
IAsyncEnumerable<TSource>
要素で始まる新しいシーケンス。
例外
source は nullです。