語言

AsyncEnumerable.Append<TSource> 方法

定義

將值附加至序列結尾。

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

類型參數

TSource

來源元素的類型。

參數

source
IAsyncEnumerable<TSource>

一連串的數值。

element
TSource

附加到來源的價值。

傳回

IAsyncEnumerable<TSource>

一個以元素結尾的新序列。

例外狀況

source 是 null。

適用於