Release Method

Task Parallel System.Threading

Exits the SemaphoreSlim once.

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

Syntax

Visual Basic (Declaration)
Public Function Release As Integer
C#
public int Release()

Return Value

The previous count of the SemaphoreSlim.

Exceptions

ExceptionCondition
System..::.ObjectDisposedExceptionThe current instance has already been disposed.

See Also