AuthorizationFilterAttribute.OnAuthorization Method
Calls when a process requests authorization.
Namespace: System.Web.Http.Filters
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Overridable Sub OnAuthorization ( _
actionContext As HttpActionContext _
)
'Usage
Dim instance As AuthorizationFilterAttribute
Dim actionContext As HttpActionContext
instance.OnAuthorization(actionContext)
public virtual void OnAuthorization(
HttpActionContext actionContext
)
public:
virtual void OnAuthorization(
HttpActionContext^ actionContext
)
abstract OnAuthorization :
actionContext:HttpActionContext -> unit
override OnAuthorization :
actionContext:HttpActionContext -> unit
public function OnAuthorization(
actionContext : HttpActionContext
)
Parameters
- actionContext
Type: System.Web.Http.Controllers.HttpActionContext
The action context, which encapsulates information for using AuthorizationFilterAttribute.