CancellationTokenSource Constructor

.NET Framework 4.6 and 4.5

Initializes the CancellationTokenSource.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Supported by Portable Class Library CancellationTokenSource() Initializes a new instance of the CancellationTokenSource class.
Public method CancellationTokenSource(Int32) Initializes a new instance of the CancellationTokenSource class that will be canceled after the specified delay in milliseconds.
Public method CancellationTokenSource(TimeSpan) Initializes a new instance of the CancellationTokenSource class that will be canceled after the specified time span.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft