共用方式為


Task.IsCompleted Property

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

Gets whether this Task has completed.

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

Syntax

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

Property Value

Type: System.Boolean
true if the task has completed; otherwise false.

Implements

IAsyncResult.IsCompleted

Remarks

IsCompleted will return true when the Task is in one of the three final states: RanToCompletion, Faulted, or Canceled.

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.