SemaphoreSlim.Release Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Exits the SemaphoreSlim once.

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)

Syntax

Public Function Release As Integer
public int Release()

Return Value

Type: System..::.Int32
The previous count of the SemaphoreSlim.

Exceptions

Exception Condition
ObjectDisposedException

The current instance has already been disposed.

SemaphoreFullException

The SemaphoreSlim has already reached its maximum size.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

SemaphoreSlim Class

Release Overload

System.Threading Namespace