ExceptionExtensions.IsCancellationException(Exception) 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.
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.