ClientUtilities.ShouldWrapInOperationCanceledException 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 to wrap an Exception in a cancellation exception.
public:
static bool ShouldWrapInOperationCanceledException(Exception ^ exception, System::Threading::CancellationToken cancellationToken);
public static bool ShouldWrapInOperationCanceledException(Exception exception, System.Threading.CancellationToken cancellationToken);
static member ShouldWrapInOperationCanceledException : Exception * System.Threading.CancellationToken -> bool
Public Shared Function ShouldWrapInOperationCanceledException (exception As Exception, cancellationToken As CancellationToken) As Boolean
Parameters
- exception
- Exception
The exception.
- cancellationToken
- CancellationToken
The CancellationToken that may have triggered the exception.
Returns
true if the exception should be wrapped; otherwise, false.