CancellationTokenSource.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 CancellationTokenSource class 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.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

CancellationTokenSource Class

Dispose Overload

System.Threading Namespace