Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TransformManyBlock<TInput, TOutput> Class

 

Provides a dataflow block that invokes a provided Func<T, TResult> delegate for every data element received.

Namespace:   System.Threading.Tasks.Dataflow
Assembly:  System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)

System::Object
System.Threading.Tasks.Dataflow::TransformManyBlock<TInput, TOutput>

generic<typename TInput, typename TOutput>
public ref class TransformManyBlock sealed : IPropagatorBlock<TInput, TOutput>, 
	ITargetBlock<TInput>, IReceivableSourceBlock<TOutput>, ISourceBlock<TOutput>, 
	IDataflowBlock

Type Parameters

TInput

Specifies the type of data received and operated on by this TransformManyBlock<TInput, TOutput>.

TOutput

Specifies the type of data output by this TransformManyBlock<TInput, TOutput>.

NameDescription
System_CAPS_pubmethodTransformManyBlock<TInput, TOutput>(Func<TInput, IEnumerable<TOutput>^>^)

Initializes a new TransformManyBlock<TInput, TOutput> with the specified function.

System_CAPS_pubmethodTransformManyBlock<TInput, TOutput>(Func<TInput, IEnumerable<TOutput>^>^, ExecutionDataflowBlockOptions^)

Initializes a new TransformManyBlock<TInput, TOutput> with the specified function and ExecutionDataflowBlockOptions.

System_CAPS_pubmethodTransformManyBlock<TInput, TOutput>(Func<TInput, Task<IEnumerable<TOutput>^>^>^)

Initializes a new TransformManyBlock<TInput, TOutput> with the specified function.

System_CAPS_pubmethodTransformManyBlock<TInput, TOutput>(Func<TInput, Task<IEnumerable<TOutput>^>^>^, ExecutionDataflowBlockOptions^)

Initializes a new TransformManyBlock<TInput, TOutput> with the specified function and ExecutionDataflowBlockOptions.

NameDescription
System_CAPS_pubpropertyCompletion

Gets a Task that represents the asynchronous operation and completion of the dataflow block.

System_CAPS_pubpropertyInputCount

Gets the number of input items waiting to be processed by this block.

System_CAPS_pubpropertyOutputCount

Gets the number of output items available to be received from this block.

NameDescription
System_CAPS_pubmethodComplete()

Signals to the IDataflowBlock that it should not accept nor produce any more messages nor consume any more postponed messages.

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodLinkTo(ITargetBlock<TOutput>^, DataflowLinkOptions^)

Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> .

System_CAPS_pubmethodToString()

Returns a string that represents the formatted name of this IDataflowBlock instance.(Overrides Object::ToString().)

System_CAPS_pubmethodTryReceive(Predicate<TOutput>^, TOutput)

Attempts to synchronously receive an available output item from the IReceivableSourceBlock<TOutput>.

System_CAPS_pubmethodTryReceiveAll(IList<TOutput>^)

Attempts to synchronously receive all available items from the IReceivableSourceBlock<TOutput>.

NameDescription
System_CAPS_pubmethodAsObservable<TOutput>()

Creates a new IObservable<T> abstraction over the ISourceBlock<TOutput>.(Defined by DataflowBlock.)

System_CAPS_pubmethodAsObserver<TInput>()

Creates a new IObserver<T> abstraction over the ITargetBlock<TInput>. (Defined by DataflowBlock.)

System_CAPS_pubmethodLinkTo<TOutput>(ITargetBlock<TOutput>^)

Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput>. (Defined by DataflowBlock.)

System_CAPS_pubmethodLinkTo<TOutput>(ITargetBlock<TOutput>^, DataflowLinkOptions^, Predicate<TOutput>^)

Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.)

System_CAPS_pubmethodLinkTo<TOutput>(ITargetBlock<TOutput>^, Predicate<TOutput>^)

Overloaded. Links the ISourceBlock<TOutput> to the specified ITargetBlock<TInput> using the specified filter. (Defined by DataflowBlock.)

System_CAPS_pubmethodOutputAvailableAsync<TOutput>()

Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output.(Defined by DataflowBlock.)

System_CAPS_pubmethodOutputAvailableAsync<TOutput>(CancellationToken)

Overloaded. Provides a Task<TResult> that asynchronously monitors the source for available output. (Defined by DataflowBlock.)

System_CAPS_pubmethodPost<TInput>(TInput)

Posts an item to the ITargetBlock<TInput>.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceive<TOutput>()

Overloaded. Synchronously receives a value from a specified source.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceive<TOutput>(CancellationToken)

Overloaded. Synchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.)

System_CAPS_pubmethodReceive<TOutput>(TimeSpan)

Overloaded. Synchronously receives a value from a specified source, observing an optional time-out period.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceive<TOutput>(TimeSpan, CancellationToken)

Overloaded. Synchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. (Defined by DataflowBlock.)

System_CAPS_pubmethodReceiveAsync<TOutput>()

Overloaded. Asynchronously receives a value from a specified source.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceiveAsync<TOutput>(CancellationToken)

Overloaded. Asynchronously receives a value from a specified source and provides a token to cancel the operation. (Defined by DataflowBlock.)

System_CAPS_pubmethodReceiveAsync<TOutput>(TimeSpan)

Overloaded. Asynchronously receives a value from a specified source, observing an optional time-out period.(Defined by DataflowBlock.)

System_CAPS_pubmethodReceiveAsync<TOutput>(TimeSpan, CancellationToken)

Overloaded. Asynchronously receives a value from a specified source, providing a token to cancel the operation and observing an optional time-out interval. (Defined by DataflowBlock.)

System_CAPS_pubmethodSendAsync<TInput>(TInput)

Overloaded. Asynchronously offers a message to the target message block, allowing for postponement.(Defined by DataflowBlock.)

System_CAPS_pubmethodSendAsync<TInput>(TInput, CancellationToken)

Overloaded. Asynchronously offers a message to the target message block, allowing for postponement.(Defined by DataflowBlock.)

System_CAPS_pubmethodTryReceive<TOutput>(TOutput)

Attempts to synchronously receive an item from the ISourceBlock<TOutput>.(Defined by DataflowBlock.)

System_CAPS_noteNote

The TPL Dataflow Library (System.Threading.Tasks.Dataflow namespace) is not distributed with the .NET Framework 4.5. To install the System.Threading.Tasks.Dataflow namespace, open your project in Visual Studio 2012, choose Manage NuGet Packages from the Project menu, and search online for the Microsoft.Tpl.Dataflow package.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2017 Microsoft