Metodo System::Threading::Tasks::FromException
Contenuti
[
Nascondere
]System::Threading::Tasks::FromException(const Exception&) method
Crea un’attività che è stata completata con un’eccezione specificata.
TaskPtr System::Threading::Tasks::FromException(const Exception &exception)
| Parametro | Tipo | Descrizione |
|---|---|---|
| eccezione | const Exception& | L’eccezione con cui completare l’attività. |
ReturnValue
Un’attività in errore.
Vedi anche
- Typedef TaskPtr
- Typedef Exception
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++
System::Threading::Tasks::FromException(const Exception&) method
Crea un’attività che è stata completata con un’eccezione specificata e un tipo di risultato.
template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::FromException(const Exception &exception)
| Parametro | Descrizione |
|---|---|
| TResult | Il tipo del risultato del task. |
| Parametro | Tipo | Descrizione |
|---|---|---|
| eccezione | const Exception& | L’eccezione con cui completare l’attività. |
ReturnValue
Un’attività in errore con il tipo di risultato specificato.
Vedi anche
- Typedef RTaskPtr
- Typedef Exception
- Namespace System::Threading::Tasks
- Library Aspose.Font for C++