Partager via


DbExecutionStrategy.ShouldRetryOn, méthode

[Cette page concerne Entity Framework version 6. La dernière version est disponible sous le nom de package 'Entity Framework' NuGet. Pour plus d'informations sur Entity Framework, consultez msdn.com/data/ef.]

Détermine si l'exception spécifiée indique un problème temporaire qui peut être compensé par une nouvelle tentative.

Espace de noms :  System.Data.Entity.Infrastructure
Assembly :  EntityFramework (dans EntityFramework.dll)

Syntaxe

'Déclaration
Protected Friend MustOverride Function ShouldRetryOn ( _
    exception As Exception _
) As Boolean
'Utilisation
Dim exception As Exception 
Dim returnValue As Boolean 

returnValue = Me.ShouldRetryOn(exception)
protected internal abstract bool ShouldRetryOn(
    Exception exception
)
protected public:
virtual bool ShouldRetryOn(
    Exception^ exception
) abstract
abstract ShouldRetryOn : 
        exception:Exception -> bool
abstract function ShouldRetryOn(
    exception : Exception
) : boolean

Paramètres

Valeur de retour

Type : System.Boolean
true si l'exception spécifiée est considérée comme étant temporaire ; sinon, false.

Voir aussi

Référence

DbExecutionStrategy Classe

Espace de noms System.Data.Entity.Infrastructure