RequireHttpsAttribute Class
Represents an attribute that forces an unsecured HTTP request to be re-sent over HTTPS.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The RequireHttpsAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | RequireHttpsAttribute | Initializes a new instance of the RequireHttpsAttribute class. |
| Name | Description | |
|---|---|---|
![]() | AllowMultiple | Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified. (Inherited from FilterAttribute.) |
![]() | Order | Gets or sets the order in which the action filters are executed. (Inherited from FilterAttribute.) |
![]() | TypeId | (Inherited from Attribute.) |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Attribute.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Attribute.) |
![]() | GetType | (Inherited from Object.) |
![]() | HandleNonHttpsRequest | Handles unsecured HTTP requests that are sent to the action method. |
![]() | IsDefaultAttribute | (Inherited from Attribute.) |
![]() | Match | (Inherited from Attribute.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | OnAuthorization | Determines whether a request is secured (HTTPS) and, if it is not, calls the HandleNonHttpsRequest method. |
![]() | ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute.GetIDsOfNames | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfo | (Inherited from Attribute.) |
![]() ![]() | _Attribute.GetTypeInfoCount | (Inherited from Attribute.) |
![]() ![]() | _Attribute.Invoke | (Inherited from Attribute.) |
For more information about the security implications of this attribute, see the entry "Security" in the MVC FAQ on Rick Anderson's blog. For more information about how to use attributes, see Extending Metadata Using Attributes.
Show:
.gif?cs-save-lang=1&cs-lang=csharp)
.gif?cs-save-lang=1&cs-lang=csharp)
.gif?cs-save-lang=1&cs-lang=csharp)
.gif?cs-save-lang=1&cs-lang=csharp)
.gif?cs-save-lang=1&cs-lang=csharp)