Task.IsCompleted Property

Gets whether this Task has completed.

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

public bool IsCompleted { get; }

Property Value

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

Implements

IAsyncResult.IsCompleted

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

Silverlight

Supported in: 5

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

Community Additions

ADD
Show: