ManualResetEventSlim.Wait Method (CancellationToken)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Blocks the current thread until the current ManualResetEventSlim receives a signal, while observing a CancellationToken.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- cancellationToken
- Type: System.Threading.CancellationToken
The CancellationToken to observe.
| Exception | Condition |
|---|---|
| InvalidOperationException | The maximum number of waiters has been exceeded. |
| OperationCanceledException | cancellationToken was canceled. |
| ObjectDisposedException | The object has already been disposed or the CancellationTokenSource that created cancellationToken has been disposed. |
Show: