System.Threading.SemaphoreSlim.AvailableWaitHandle Property

Returns a System.Threading.WaitHandle that can be used to wait on the semaphore.

Syntax

public WaitHandle AvailableWaitHandle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use this property only when you must wait on a SemaphoreSlim together with other kernel-based synchronization objects with the same wait handle. A successful wait on the SemaphoreSlim.AvailableWaitHandle does not imply a successful wait on the System.Threading.SemaphoreSlim itself, nor does it decrement the semaphore's count. After the available wait handle is signaled, you should wait on the System.Threading.SemaphoreSlim specifically.

Requirements

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