Share via


SqlServerRetryingExecutionStrategy.ShouldRetryOn(Exception) Méthode

Définition

Détermine si l’exception spécifiée représente un échec temporaire qui peut être compensé par une nouvelle tentative. Des exceptions supplémentaires à retenter peuvent être passées au constructeur.

protected override bool ShouldRetryOn (Exception exception);
override this.ShouldRetryOn : Exception -> bool
Protected Overrides Function ShouldRetryOn (exception As Exception) As Boolean

Paramètres

exception
Exception

Objet d’exception à vérifier.

Retours

true si l’exception spécifiée est considérée comme temporaire, sinon false.

S’applique à