Metoden System::Threading::Tasks::FromException
Innehåll
[
Dölj
]System::Threading::Tasks::FromException(const Exception&) method
Skapar en uppgift som har slutförts med ett specificerat undantag.
TaskPtr System::Threading::Tasks::FromException(const Exception &exception)
| Parameter | Typ | Beskrivning |
|---|---|---|
| undantag | const Exception& | Undantaget som ska användas för att slutföra uppgiften. |
ReturnValue
En felaktig uppgift.
Se även
- Typedef TaskPtr
- Typedef Exception
- Namespace System::Threading::Tasks
- Library Aspose.PDF for C++
System::Threading::Tasks::FromException(const Exception&) method
Skapar en uppgift som har slutförts med ett specificerat undantag och resultattyp.
template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::FromException(const Exception &exception)
| Parameter | Beskrivning |
|---|---|
| TResult | Typen av uppgiftens resultat. |
| Parameter | Typ | Beskrivning |
|---|---|---|
| undantag | const Exception& | Undantaget som ska användas för att slutföra uppgiften. |
ReturnValue
En felaktig uppgift med den specificerade resultattypen.
Se även
- Typedef RTaskPtr
- Typedef Exception
- Namespace System::Threading::Tasks
- Library Aspose.PDF for C++