Редагувати

Поділитися через


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
Public Sub Fault (exception As Exception)

Parameters

exception
Exception

The Exception that caused the faulting.

Exceptions

The exception is null.

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