語言

AsyncEnumerable.Select 方法

定義

多載

名稱 Description
Select<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<TResult>>)

藉由合併元素的索引,將序列的每個專案投影成新的表單。

Select<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,TResult>)

藉由合併元素的索引,將序列的每個專案投影成新的表單。

Select<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<TResult>>)

將序列的每個專案投影成新的表單。

Select<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,TResult>)

將序列的每個專案投影成新的表單。

Select<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,CancellationToken,ValueTask<TResult>>)

來源:
Select.cs
來源:
Select.cs
來源:
Select.cs
來源:
Select.cs

藉由合併元素的索引,將序列的每個專案投影成新的表單。

public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TResult> ^ Select(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<TResult>> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> Select<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TResult>> selector);
static member Select : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function Select(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, Integer, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)

類型參數

TSource

來源元素的類型。

TResult

選擇器回傳的值型別。

參數

source
IAsyncEnumerable<TSource>

一串用來呼叫轉換函數的數值序列。

selector
Func<TSource,Int32,CancellationToken,ValueTask<TResult>>

一個轉換函數,用於應用於每個元素;函數的第二個參數代表來源元素的索引。

傳回

IAsyncEnumerable<TResult>

其 IAsyncEnumerable<T> 元素是對來源中每個元素調用轉換函數所產生的結果。

例外狀況

selector 是 null。

適用於

Select<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,Int32,TResult>)

來源:
Select.cs
來源:
Select.cs
來源:
Select.cs
來源:
Select.cs

藉由合併元素的索引,將序列的每個專案投影成新的表單。

public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TResult> ^ Select(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, int, TResult> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> Select<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,int,TResult> selector);
static member Select : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, int, 'Result> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function Select(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, Integer, TResult)) As IAsyncEnumerable(Of TResult)

類型參數

TSource

來源元素的類型。

TResult

選擇器回傳的值型別。

參數

source
IAsyncEnumerable<TSource>

一串用來呼叫轉換函數的數值序列。

selector
Func<TSource,Int32,TResult>

一個轉換函數,用於應用於每個元素;函數的第二個參數代表來源元素的索引。

傳回

IAsyncEnumerable<TResult>

其 IAsyncEnumerable<T> 元素是對來源中每個元素調用轉換函數所產生的結果。

例外狀況

selector 是 null。

適用於

Select<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,CancellationToken,ValueTask<TResult>>)

來源:
Select.cs
來源:
Select.cs
來源:
Select.cs
來源:
Select.cs

將序列的每個專案投影成新的表單。

public:
generic <typename TSource, typename TResult>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Generic::IAsyncEnumerable<TResult> ^ Select(System::Collections::Generic::IAsyncEnumerable<TSource> ^ source, Func<TSource, System::Threading::CancellationToken, System::Threading::Tasks::ValueTask<TResult>> ^ selector);
public static System.Collections.Generic.IAsyncEnumerable<TResult> Select<TSource,TResult>(this System.Collections.Generic.IAsyncEnumerable<TSource> source, Func<TSource,System.Threading.CancellationToken,System.Threading.Tasks.ValueTask<TResult>> selector);
static member Select : System.Collections.Generic.IAsyncEnumerable<'Source> * Func<'Source, System.Threading.CancellationToken, System.Threading.Tasks.ValueTask<'Result>> -> System.Collections.Generic.IAsyncEnumerable<'Result>
<Extension()>
Public Function Select(Of TSource, TResult) (source As IAsyncEnumerable(Of TSource), selector As Func(Of TSource, CancellationToken, ValueTask(Of TResult))) As IAsyncEnumerable(Of TResult)

類型參數

TSource

來源元素的類型。

TResult

選擇器回傳的值型別。

參數

source
IAsyncEnumerable<TSource>

一串用來呼叫轉換函數的數值序列。

selector
Func<TSource,CancellationToken,ValueTask<TResult>>

一個轉換函數,可以套用到每個元素。

傳回

IAsyncEnumerable<TResult>

其 IAsyncEnumerable<T> 元素是對來源中每個元素調用轉換函數所產生的結果。

例外狀況

selector 是 null。

適用於

Select<TSource,TResult>(IAsyncEnumerable<TSource>, Func<TSource,TResult>)

來源:
Select.cs
來源:
Select.cs
來源:
Select.cs
來源:
Select.cs

將序列的每個專案投影成新的表單。

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

類型參數

TSource

來源元素的類型。

TResult

選擇器回傳的值型別。

參數

source
IAsyncEnumerable<TSource>

一串用來呼叫轉換函數的數值序列。

selector
Func<TSource,TResult>

一個轉換函數,可以套用到每個元素。

傳回

IAsyncEnumerable<TResult>

其 IAsyncEnumerable<T> 元素是對來源中每個元素調用轉換函數所產生的結果。

例外狀況

selector 是 null。

適用於