Export (0) Print
Expand All

ActionBlock<TInput>.IDataflowBlock.Fault Method

.NET Framework 4.6 and 4.5

Causes the dataflow block to complete in a faulted state.

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

void IDataflowBlock.Fault(
	Exception exception
)

Parameters

exception
Type: System.Exception

The exception that caused the faulting.

Implements

IDataflowBlock.Fault(Exception)

ExceptionCondition
ArgumentNullException

exception is null.

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.

.NET Framework

Supported in: 4.5

Portable Class Library

Supported in: Portable Class Library
Show:
© 2015 Microsoft