Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BroadcastBlock<T>.IDataflowBlock.Fault Method

.NET Framework 4.6 and 4.5

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)

void IDataflowBlock.Fault(
	Exception exception
)

Parameters

exception
Type: System.Exception

The Exception that caused the faulting.

Implements

IDataflowBlock.Fault(Exception)

ExceptionCondition
ArgumentNullException

The 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