Udostępnij za pośrednictwem


ExceptionFilterAttribute.OnException Method

Raises the exception event.

Namespace:  System.Web.Http.Filters
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Overridable Sub OnException ( _
    actionExecutedContext As HttpActionExecutedContext _
)
'Usage
Dim instance As ExceptionFilterAttribute
Dim actionExecutedContext As HttpActionExecutedContext

instance.OnException(actionExecutedContext)
public virtual void OnException(
    HttpActionExecutedContext actionExecutedContext
)
public:
virtual void OnException(
    HttpActionExecutedContext^ actionExecutedContext
)
abstract OnException : 
        actionExecutedContext:HttpActionExecutedContext -> unit 
override OnException : 
        actionExecutedContext:HttpActionExecutedContext -> unit 
public function OnException(
    actionExecutedContext : HttpActionExecutedContext
)

Parameters

See Also

Reference

ExceptionFilterAttribute Class

System.Web.Http.Filters Namespace