IsFaulted Property

Task.IsFaulted Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets whether the Task completed due to an unhandled exception.

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

public bool IsFaulted { get; }

Property Value

Type: System.Boolean
true if the task has thrown an unhandled exception; otherwise false.

If IsFaulted is true, the Task's Status will be equal to Faulted, and its Exception property will be non-null.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft