The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
ActionBlock<TInput>::IDataflowBlock::Fault Method (Exception^)
Causes the dataflow block to complete in a faulted state.
Assembly: System.Threading.Tasks.Dataflow (in System.Threading.Tasks.Dataflow.dll)
Parameters
- exception
-
Type:
System::Exception^
The exception that caused the faulting.
Implements
IDataflowBlock::Fault(Exception^)| Exception | Condition |
|---|---|
| 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.
Show: