JoinBlock<T1, T2>::IDataflowBlock::Fault Method (Exception^)

 

Causes the IDataflowBlock to complete in a Faulted state.

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

private:
virtual void Fault(
	Exception^ exception
) sealed = IDataflowBlock::Fault

Parameters

exception
Type: System::Exception^

The Exception that caused the faulting.

Exception Condition
ArgumentNullException

The exception is null.

After IDataflowBlock::Fault has been called on a dataflow block, that block will complete, and its Completion task will enter a final state. Faulting a block, as with canceling a block, causes buffered messages (unprocessed input messages as well as unoffered output messages) to be lost.

Return to top
Show: