語言

AsyncEnumerable.Concat<TSource> 方法

定義

串連兩個序列。

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

類型參數

TSource

輸入序列元素的類型。

參數

first
IAsyncEnumerable<TSource>

第一個串接的序列。

second
IAsyncEnumerable<TSource>

該序列將與第一個序列連接起來。

傳回

IAsyncEnumerable<TSource>

包含 IAsyncEnumerable<T> 兩個輸入序列的串接元素。

例外狀況

second 是 null。

適用於