SemaphoreSlim.Dispose Method (Boolean)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Releases the unmanaged resources used by the ManualResetEventSlim, and optionally releases the managed resources.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Syntax
Protected Overridable Sub Dispose ( _
disposing As Boolean _
)
protected virtual void Dispose(
bool disposing
)
Parameters
- disposing
Type: System..::.Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Remarks
Unlike most of the members of SemaphoreSlim, Dispose is not thread-safe and may not be used concurrently with other members of this instance.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0