.NET Framework Class Library |
SemaphoreSlim..::.Release Method |
SemaphoreSlim Class See Also Send Feedback |
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
Exception | Condition |
---|---|
System..::.ObjectDisposedException | The current instance has already been disposed. |