## System::Threading::Tasks::FromResult method


Crea un task che è stato completato con successo con il risultato specificato.

```cpp
template<typename TResult> RTaskPtr<TResult> System::Threading::Tasks::FromResult(TResult result)
```


| Parametro | Descrizione |
| --- | --- |
| TResult | Il tipo del risultato del task. |

| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| risultato | TResult | Il valore del risultato con cui completare il task. |

### ReturnValue

Un task completato con successo.

## Vedi anche

* Typedef [RTaskPtr](../../system/rtaskptr/)
* Namespace [System::Threading::Tasks](../)
* Library [Aspose.Font for C++](../../)
