SemaphoreSlim.Release Method (Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Exits the SemaphoreSlim a specified number of times.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- releaseCount
- Type: System.Int32
The number of times to exit the semaphore.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The current instance has already been disposed. |
| ArgumentOutOfRangeException | releaseCount is less than 1. |
| SemaphoreFullException | The SemaphoreSlim has already reached its maximum size. |
Show: