Méthode System::Threading::Tasks::FromException
Contenu
[
Cacher
]System::Threading::Tasks::FromException(const Exception&) method
Crée une tâche qui s’est terminée avec une exception spécifiée.
TaskPtr System::Threading::Tasks::FromException(const Exception &exception)
| Paramètre | Type | Description |
|---|---|---|
| exception | const Exception& | L’exception avec laquelle terminer la tâche. |
ReturnValue
Une tâche en échec.
Voir aussi
- Typedef TaskPtr
- Typedef Exception
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++
System::Threading::Tasks::FromException(const Exception&) method
Crée une tâche qui s’est terminée avec une exception spécifiée et un type de résultat.
template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::FromException(const Exception &exception)
| Paramètre | Description |
|---|---|
| TResult | Le type du résultat de la tâche. |
| Paramètre | Type | Description |
|---|---|---|
| exception | const Exception& | L’exception avec laquelle terminer la tâche. |
ReturnValue
Une tâche en échec avec le type de résultat spécifié.
Voir aussi
- Typedef RTaskPtr
- Typedef Exception
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++