Task.Delay Method (TimeSpan)
[ 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
- delay
- Type: System.TimeSpan
The time span to wait before completing the returned Task
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The delay is less than -1 or greater than Int32.MaxValue. |
Show: