Task.IsFaulted Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient si l’opération Task terminée en raison d’une exception non gérée.
public:
property bool IsFaulted { bool get(); };
public bool IsFaulted { get; }
member this.IsFaulted : bool
Public ReadOnly Property IsFaulted As Boolean
Valeur de propriété
true si la tâche a levée une exception non gérée ; sinon false.
Remarques
Si IsFaulted c’est Statustruele cas, les tâches sont égales à Faulted, et sa Exception propriété est non null.
Important
La récupération de la valeur de la Task.IsFaulted propriété ne bloque pas le thread appelant tant que la tâche n’est pas terminée.