Export (0) Print
Expand All

CancellationToken Constructor

Initializes the CancellationToken.

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

public CancellationToken(
	bool canceled
)

Parameters

canceled
Type: System.Boolean
The canceled state for the token.

Tokens created with this constructor will remain in the canceled state specified by the canceled parameter. If canceled is false, both CanBeCanceled and IsCancellationRequested will be false.

If canceled is true, both CanBeCanceled and IsCancellationRequested will be true.

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