IDataflowBlock.Fault(Exception) IDataflowBlock.Fault(Exception) IDataflowBlock.Fault(Exception) Method

Definition

Causes the IDataflowBlock to complete in a Faulted state.

public:
 void Fault(Exception ^ exception);
public void Fault (Exception exception);
abstract member Fault : Exception -> unit

Parameters

exception
Exception Exception Exception

The Exception that caused the faulting.

Exceptions

Remarks

After 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