Dispose Method (Boolean)

Task Parallel System.Threading

Disposes the Task, releasing all of its unmanaged resources.

Namespace:  System.Threading.Tasks
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
A Boolean value that indicates whether this method is being called due to a call to Dispose()()().

Remarks

Unlike most of the members of Task, this method is not thread-safe.

See Also