TransformBlock<TInput,TOutput> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
使用指定的 Func<T,TResult> 初始化新的 TransformBlock<TInput,TOutput>。
public:
TransformBlock(Func<TInput, System::Threading::Tasks::Task<TOutput> ^> ^ transform);
public TransformBlock (Func<TInput,System.Threading.Tasks.Task<TOutput>> transform);
new System.Threading.Tasks.Dataflow.TransformBlock<'Input, 'Output> : Func<'Input, System.Threading.Tasks.Task<'Output>> -> System.Threading.Tasks.Dataflow.TransformBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, Task(Of TOutput)))
参数
例外
transform
为 null
。
适用于
TransformBlock<TInput,TOutput>(Func<TInput,TOutput>)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
使用指定的 Func<T,TResult> 初始化新的 TransformBlock<TInput,TOutput>。
public:
TransformBlock(Func<TInput, TOutput> ^ transform);
public TransformBlock (Func<TInput,TOutput> transform);
new System.Threading.Tasks.Dataflow.TransformBlock<'Input, 'Output> : Func<'Input, 'Output> -> System.Threading.Tasks.Dataflow.TransformBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, TOutput))
参数
- transform
- Func<TInput,TOutput>
使用接收的各个数据元素调用的函数。
例外
transform
为 null
。
适用于
TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
public:
TransformBlock(Func<TInput, System::Threading::Tasks::Task<TOutput> ^> ^ transform, System::Threading::Tasks::Dataflow::ExecutionDataflowBlockOptions ^ dataflowBlockOptions);
public TransformBlock (Func<TInput,System.Threading.Tasks.Task<TOutput>> transform, System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.TransformBlock<'Input, 'Output> : Func<'Input, System.Threading.Tasks.Task<'Output>> * System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions -> System.Threading.Tasks.Dataflow.TransformBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, Task(Of TOutput)), dataflowBlockOptions As ExecutionDataflowBlockOptions)
参数
- dataflowBlockOptions
- ExecutionDataflowBlockOptions
用来配置此 TransformBlock<TInput,TOutput>的选项。
例外
适用于
TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
public:
TransformBlock(Func<TInput, TOutput> ^ transform, System::Threading::Tasks::Dataflow::ExecutionDataflowBlockOptions ^ dataflowBlockOptions);
public TransformBlock (Func<TInput,TOutput> transform, System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions dataflowBlockOptions);
new System.Threading.Tasks.Dataflow.TransformBlock<'Input, 'Output> : Func<'Input, 'Output> * System.Threading.Tasks.Dataflow.ExecutionDataflowBlockOptions -> System.Threading.Tasks.Dataflow.TransformBlock<'Input, 'Output>
Public Sub New (transform As Func(Of TInput, TOutput), dataflowBlockOptions As ExecutionDataflowBlockOptions)
参数
- transform
- Func<TInput,TOutput>
使用接收的各个数据元素调用的函数。
- dataflowBlockOptions
- ExecutionDataflowBlockOptions
用来配置此 TransformBlock<TInput,TOutput>的选项。