TransformBlock<TInput,TOutput>.IDataflowBlock.Fault(Exception) TransformBlock<TInput,TOutput>.IDataflowBlock.Fault(Exception) Method

Definition

Causes the IDataflowBlock to complete in a Faulted state.

 virtual void System.Threading.Tasks.Dataflow.IDataflowBlock.Fault(Exception ^ exception) = System::Threading::Tasks::Dataflow::IDataflowBlock::Fault;
void IDataflowBlock.Fault (Exception exception);

Parameters

exception
Exception Exception

The Exception that caused the faulting.

Implements

Exceptions

Remarks

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.

Applies to