Compartir a través de


ResourceExecutedContext.Exception Propiedad

Definición

Obtiene o establece el objeto actual Exception.

public:
 virtual property Exception ^ Exception { Exception ^ get(); void set(Exception ^ value); };
public virtual Exception Exception { get; set; }
public virtual Exception? Exception { get; set; }
member this.Exception : Exception with get, set
Public Overridable Property Exception As Exception

Valor de propiedad

Comentarios

Si Exception se establece o ExceptionDispatchInfo en null , se tratará la excepción como controlada y el tiempo de ejecución no volverá a iniciarla.

Al establecer ExceptionHandled en true , también se marcará la excepción como controlada.

Se aplica a