Language

ClientUtilities.ShouldWrapInOperationCanceledException Method

Definition

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.

Applies to