Export (0) Print
Expand All

Task.Dispose Method (Boolean)

Disposes the Task, releasing all of its unmanaged resources.

Namespace:  System.Threading.Tasks
Assembly:  mscorlib (in mscorlib.dll)

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.

ExceptionCondition
InvalidOperationException

The exception that is thrown if the Task is not in one of the final states: RanToCompletion, Faulted, or Canceled.

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

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft