Dispose Method (Boolean)

Task Parallel System.Threading

When overridden in a derived class, releases the unmanaged resources used by the Barrier, 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 Barrier, Dispose is not thread-safe and may not be used concurrently with other members of this instance.

See Also