Task.Delay Method (Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a Task that will complete after a time delay.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- millisecondsDelay
- Type: System.Int32
The number of milliseconds to wait before completing the returned Task
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The millisecondsDelay is less than -1. |
Show: