ClientUtilities.ShouldWrapInOperationCanceledException Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Bepaalt of een Exception annuleringsonderzondering moet worden verpakt.
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
De uitzondering.
- cancellationToken
- CancellationToken
De CancellationToken uitzondering kan zijn geactiveerd.
Retouren
waar als de uitzondering moet worden verpakt; anders, onwaar.