Gets whether the Task completed due to an unhandled exception.
Namespace:
System.Threading.Tasks
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public ReadOnly Property IsFaulted As Boolean |
C# |
---|
public bool IsFaulted { get; } |
Remarks
If IsFaulted is true, the Task's Status will be equal to
TaskStatus.Faulted, and its
Exception property will be non-null.