Condividi tramite


ExceptionExtensions.IsCancellationException(Exception) Method

Definition

Determines whether an exception represents a cancellation.

public static bool IsCancellationException (this Exception ex);
static member IsCancellationException : Exception -> bool
<Extension()>
Public Function IsCancellationException (ex As Exception) As Boolean

Parameters

ex
Exception

The exception to test.

Returns

true if the exception represents a cancellation, false if it does not.

Applies to