CancellationToken.None CancellationToken.None CancellationToken.None CancellationToken.None Property

Definition

Returns an empty CancellationToken value.

public:
 static property System::Threading::CancellationToken None { System::Threading::CancellationToken get(); };
[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline across NGen image boundaries")]
public static System.Threading.CancellationToken None { get; }
member this.None : System.Threading.CancellationToken
Public Shared ReadOnly Property None As CancellationToken
Property Value

Remarks

The cancellation token returned by this property cannot be canceled; that is, its CanBeCanceled property is false.

You can also use the C# default(CancellationToken) statement to create an empty cancellation token.

Two empty cancellation tokens are always equal.

Applies to