## System::Threading::Tasks::Delay(int32_t) method


Crée une tâche qui se termine après un délai.

```cpp
TaskPtr System::Threading::Tasks::Delay(int32_t millisecondsDelay)
```


| Paramètre | Type | Description |
| --- | --- | --- |
| millisecondsDelay | int32_t | Le nombre de millisecondes à attendre avant de terminer la tâche retournée, ou -1 pour attendre indéfiniment. |

### ReturnValue

Une tâche qui représente le délai temporel.

## Voir aussi

* Typedef [TaskPtr](../../system/taskptr/)
* Namespace [System::Threading::Tasks](../)
* Library [Aspose.Page for C++](../../)
## System::Threading::Tasks::Delay(int32_t, const CancellationToken\&) method




```cpp
TaskPtr System::Threading::Tasks::Delay(int32_t millisecondsDelay, const CancellationToken &cancellationToken)
```

## Voir aussi

* Typedef [TaskPtr](../../system/taskptr/)
* Class [CancellationToken](../../system.threading/cancellationtoken/)
* Namespace [System::Threading::Tasks](../)
* Library [Aspose.Page for C++](../../)
