次の方法で共有


Task.IsFaulted Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets whether the Task completed due to an unhandled exception.

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

Syntax

'Declaration
Public ReadOnly Property IsFaulted As Boolean
public bool IsFaulted { get; }

Property Value

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

Remarks

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

Version Information

Silverlight

Supported in: 5

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.