DbExecutionStrategy.UnwrapAndHandleException<T> Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient de manière récursive InnerException à partir de exception tant qu’il s’agit d’un EntityException, DbUpdateException ou UpdateException et le transmet à exceptionHandler
public static T UnwrapAndHandleException<T>(Exception exception, Func<Exception,T> exceptionHandler);
static member UnwrapAndHandleException : Exception * Func<Exception, 'T> -> 'T
Paramètres de type
- T
Type de l’exception non décapée.
Paramètres
- exception
- Exception
Exception à désencapsuler.
Retours
Résultat de exceptionHandler.