Méthode | Description | |
---|---|---|
OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void |
Determines whether a request is secured (HTTPS) and, if it is not, calls the HandleNonHttpsRequest method.
|
|
RedirectToHttpsAttribute ( bool permanent ) : System |
Initializes a new instance of the RedirectToHttpsAttribute class.
|
Méthode | Description | |
---|---|---|
HandleNonHttpsRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void |
Handles unsecured HTTP requests that are sent to the action method.
|
protected HandleNonHttpsRequest ( System.Web.Mvc.AuthorizationContext filterContext ) : void | ||
filterContext | System.Web.Mvc.AuthorizationContext | An object that encapsulates information that is required in order to use the
/// |
Résultat | void |
public OnAuthorization ( System.Web.Mvc.AuthorizationContext filterContext ) : void | ||
filterContext | System.Web.Mvc.AuthorizationContext | An object that encapsulates information that is required in order to use the
/// |
Résultat | void |
public RedirectToHttpsAttribute ( bool permanent ) : System | ||
permanent | bool | if set to |
Résultat | System |