Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library
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.Dispose Method (Boolean)

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

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

'Declaration
Protected Overridable Sub Dispose ( _
	disposing As Boolean _
)

Parameters

disposing
Type: System.Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.

Unlike most of the members of SemaphoreSlim, Dispose is not thread-safe and may not be used concurrently with other members of this instance.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2015 Microsoft