Share via


TaskExtensions.ThrowIfCancellationRequested(CancellationToken, Action) Method

Definition

public static void ThrowIfCancellationRequested (this System.Threading.CancellationToken cancellationToken, Action cancelledCallback);
static member ThrowIfCancellationRequested : System.Threading.CancellationToken * Action -> unit
<Extension()>
Public Sub ThrowIfCancellationRequested (cancellationToken As CancellationToken, cancelledCallback As Action)

Parameters

cancellationToken
CancellationToken
cancelledCallback
Action

Applies to