Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SemaphoreSlim Methods

.NET Framework (current version)
 

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

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources used by the current instance of the SemaphoreSlim class.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the SemaphoreSlim, and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRelease()

Releases the SemaphoreSlim object once.

System_CAPS_pubmethodRelease(Int32)

Releases the SemaphoreSlim object a specified number of times.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWait()

Blocks the current thread until it can enter the SemaphoreSlim.

System_CAPS_pubmethodWait(CancellationToken)

Blocks the current thread until it can enter the SemaphoreSlim, while observing a CancellationToken.

System_CAPS_pubmethodWait(Int32)

Blocks the current thread until it can enter the SemaphoreSlim, using a 32-bit signed integer that specifies the timeout.

System_CAPS_pubmethodWait(Int32, CancellationToken)

Blocks the current thread until it can enter the SemaphoreSlim, using a 32-bit signed integer that specifies the timeout, while observing a CancellationToken.

System_CAPS_pubmethodWait(TimeSpan)

Blocks the current thread until it can enter the SemaphoreSlim, using a TimeSpan to specify the timeout.

System_CAPS_pubmethodWait(TimeSpan, CancellationToken)

Blocks the current thread until it can enter the SemaphoreSlim, using a TimeSpan that specifies the timeout, while observing a CancellationToken.

System_CAPS_pubmethodWaitAsync()

Asynchronously waits to enter the SemaphoreSlim.

System_CAPS_pubmethodWaitAsync(CancellationToken)

Asynchronously waits to enter the SemaphoreSlim, while observing a CancellationToken.

System_CAPS_pubmethodWaitAsync(Int32)

Asynchronously waits to enter the SemaphoreSlim, using a 32-bit signed integer to measure the time interval.

System_CAPS_pubmethodWaitAsync(Int32, CancellationToken)

Asynchronously waits to enter the SemaphoreSlim, using a 32-bit signed integer to measure the time interval, while observing a CancellationToken.

System_CAPS_pubmethodWaitAsync(TimeSpan)

Asynchronously waits to enter the SemaphoreSlim, using a TimeSpan to measure the time interval.

System_CAPS_pubmethodWaitAsync(TimeSpan, CancellationToken)

Asynchronously waits to enter the SemaphoreSlim, using a TimeSpan to measure the time interval, while observing a CancellationToken.

Return to top
Show:
© 2017 Microsoft