HttpPostAttribute Class
Represents an attribute that is used to restrict an action method so that the method handles only HTTP POST requests.
System::Object
System::Attribute
System.Web.Mvc::ActionMethodSelectorAttribute
System.Web.Mvc::HttpPostAttribute
System::Attribute
System.Web.Mvc::ActionMethodSelectorAttribute
System.Web.Mvc::HttpPostAttribute
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
The HttpPostAttribute type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Attribute.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Attribute.) |
![]() | GetType | (Inherited from Object.) |
![]() | IsDefaultAttribute | (Inherited from Attribute.) |
![]() | IsValidForRequest | Determines whether a request is a valid HTTP POST request. (Overrides ActionMethodSelectorAttribute::IsValidForRequest(ControllerContext, MethodInfo).) |
![]() | Match | (Inherited from Attribute.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
For more information about how to use attributes, see Extending Metadata Using Attributes.
Show:
