Task.IsCompleted Task.IsCompleted Task.IsCompleted Task.IsCompleted Property

Definición

Obtiene un valor que indica si la tarea se ha completado.Gets a value that indicates whether the task has completed.

public:
 property bool IsCompleted { bool get(); };
public bool IsCompleted { get; }
member this.IsCompleted : bool
Public ReadOnly Property IsCompleted As Boolean

Valor de propiedad

true si la tarea se ha completado (es decir, la tarea está en uno de los tres Estados finales: RanToCompletion, Faulted o Canceled); de lo contrario, false.true if the task has completed (that is, the task is in one of the three final states: RanToCompletion, Faulted, or Canceled); otherwise, false.

Implementaciones

Comentarios

Importante

Al recuperar el valor de la propiedad Task.IsCompleted no se bloquea el subproceso que realiza la llamada hasta que se completa la tarea.Retrieving the value of the Task.IsCompleted property does not block the calling thread until the task has completed.

Se aplica a