CancellationToken Constructor

July 28, 2014

Initializes the CancellationToken.

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

'Declaration
Public Sub New ( _
	canceled As Boolean _
)

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2014 Microsoft