ClientUtilities.ThrowIfCancellationRequested(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Throws a cancellation exception if cancellation has been requested via cancellationToken.
public:
static void ThrowIfCancellationRequested(System::Threading::CancellationToken cancellationToken);
public static void ThrowIfCancellationRequested(System.Threading.CancellationToken cancellationToken);
static member ThrowIfCancellationRequested : System.Threading.CancellationToken -> unit
Public Shared Sub ThrowIfCancellationRequested (cancellationToken As CancellationToken)
Parameters
- cancellationToken
- CancellationToken
The token to check for a cancellation request.