WriteOnceBlock<T> Constructor (Func<T, T>^, DataflowBlockOptions^)

 

Initializes a new WriteOnceBlock<T> with the specified DataflowBlockOptions.

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

public:
WriteOnceBlock(
	Func<T, T>^ cloningFunction,
	DataflowBlockOptions^ dataflowBlockOptions
)

Parameters

cloningFunction
Type: System::Func<T, T>^

The function to use to clone the data when offered to other blocks.

dataflowBlockOptions
Type: System.Threading.Tasks.Dataflow::DataflowBlockOptions^

The options with which to configure this WriteOnceBlock<T>.

Exception Condition
ArgumentNullException

The dataflowBlockOptions is null.

Return to top
Show: