Export (0) Print
Expand All

SemaphoreSlim.CurrentCount Property

Gets the number of remaining threads that can enter the SemaphoreSlim object.

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

'Declaration
Public ReadOnly Property CurrentCount As Integer

Property Value

Type: System.Int32
The number of remaining threads that can enter the semaphore.

The initial value of the CurrentCount property is set by the call to the SemaphoreSlim class constructor. It is decremented by each call to the Wait or WaitAsync method, and incremented by each call to the Release method.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft