RequireHttpsAttribute.OnAuthorization(AuthorizationContext) RequireHttpsAttribute.OnAuthorization(AuthorizationContext) RequireHttpsAttribute.OnAuthorization(AuthorizationContext) Method

Definition

Determines whether a request is secured (HTTPS) and, if it is not, calls the HandleNonHttpsRequest(AuthorizationContext) method.

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 AuthorizationContext AuthorizationContext

An object that encapsulates information that is required in order to use the RequireHttpsAttribute attribute.

Implements

Exceptions

Applies to