TransformBlock<TInput,TOutput> Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>) |
Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult>. |
TransformBlock<TInput,TOutput>(Func<TInput,TOutput>) |
Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult>. |
TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions) |
Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult> and ExecutionDataflowBlockOptions. |
TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions) |
Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult> and ExecutionDataflowBlockOptions. |
TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult>.
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)))
Parameters
Exceptions
The transform
is null
.
Applies to
TransformBlock<TInput,TOutput>(Func<TInput,TOutput>)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult>.
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))
Parameters
- transform
- Func<TInput,TOutput>
The function to invoke with each data element received.
Exceptions
The transform
is null
.
Applies to
TransformBlock<TInput,TOutput>(Func<TInput,Task<TOutput>>, ExecutionDataflowBlockOptions)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult> and ExecutionDataflowBlockOptions.
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)
Parameters
- dataflowBlockOptions
- ExecutionDataflowBlockOptions
The options with which to configure this TransformBlock<TInput,TOutput>.
Exceptions
Applies to
TransformBlock<TInput,TOutput>(Func<TInput,TOutput>, ExecutionDataflowBlockOptions)
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
- Source:
- TransformBlock.cs
Initializes a new TransformBlock<TInput,TOutput> with the specified Func<T,TResult> and ExecutionDataflowBlockOptions.
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)
Parameters
- transform
- Func<TInput,TOutput>
The function to invoke with each data element received.
- dataflowBlockOptions
- ExecutionDataflowBlockOptions
The options with which to configure this TransformBlock<TInput,TOutput>.
Exceptions
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기