This topic has not yet been rated - Rate this topic

SemaphoreSlim.Dispose Method (Boolean)

April 12, 2014

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.