AuthorizeAttribute.OnAuthorization(AuthorizationContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when a process requests authorization.
public virtual void OnAuthorization (System.Web.Mvc.AuthorizationContext filterContext);
abstract member OnAuthorization : System.Web.Mvc.AuthorizationContext -> unit
override this.OnAuthorization : System.Web.Mvc.AuthorizationContext -> unit
Public Overridable Sub OnAuthorization (filterContext As AuthorizationContext)
Parameters
- filterContext
- AuthorizationContext
The filter context, which encapsulates information for using AuthorizeAttribute.
Implements
Exceptions
The filterContext
parameter is null.