.NET Framework Class Library |
SemaphoreSlim..::.Dispose Method (Boolean) |
SemaphoreSlim Class See Also Send Feedback |
When overridden in a derived class, releases the unmanaged resources used by the
ManualResetEventSlim, and optionally releases the managed resources.
Namespace:
System.Threading
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Protected Overridable Sub Dispose ( _ disposing As Boolean _ ) |
C# |
---|
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(Boolean) is not
thread-safe and may not be used concurrently with other members of this instance.