ExceptionResult(Exception, Boolean) Constructeur

Définition

Initialise une nouvelle instance de la classe ExceptionResult.

public ExceptionResult (Exception exception, bool includeErrorDetail);
new System.Web.Http.ExceptionResult : Exception * bool -> System.Web.Http.ExceptionResult
Public Sub New (exception As Exception, includeErrorDetail As Boolean)

Paramètres

exception
Exception

Exception à inclure dans l'erreur.

includeErrorDetail
Boolean

true si l’erreur doit inclure des messages d’exception ; sinon, false.

S’applique à