Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RequireHttpsAttribute.OnAuthorization Method

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public virtual void OnAuthorization(
	AuthorizationContext filterContext
)

Parameters

filterContext
Type: System.Web.Mvc.AuthorizationContext
An object that encapsulates information that is required in order to use the RequireHttpsAttribute attribute.

Implements

IAuthorizationFilter.OnAuthorization(AuthorizationContext)
ExceptionCondition
ArgumentNullException

The filterContext parameter is null.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.