ActionBlock<TInput> Constructor (Action<TInput>^)

 

Initializes a new instance of the ActionBlock<TInput> class with the specified action.

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

public:
ActionBlock(
	Action<TInput>^ action
)

Parameters

action
Type: System::Action<TInput>^

The action to invoke with each data element received.

Exception Condition
ArgumentNullException

action is null.

Return to top
Show: