TransformBlock<TInput,TOutput> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
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
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
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
- Source:
- TransformBlock.cs
- 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
- Source:
- TransformBlock.cs
- 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>选项的选项。