AcceptVerbsAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an attribute that specifies which HTTP verbs an action method will respond to.
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class AcceptVerbsAttribute : System.Web.Mvc.ActionMethodSelectorAttribute
type AcceptVerbsAttribute = class
inherit ActionMethodSelectorAttribute
Public NotInheritable Class AcceptVerbsAttribute
Inherits ActionMethodSelectorAttribute
- Inheritance
- Attributes
Constructors
AcceptVerbsAttribute(HttpVerbs) |
Initializes a new instance of the AcceptVerbsAttribute class using the HTTP verbs that the action method will respond to. |
AcceptVerbsAttribute(String[]) |
Initializes a new instance of the AcceptVerbsAttribute class by using a list of HTTP verbs that the action method will respond to. |
Properties
Verbs |
Gets or sets the list of HTTP verbs that the action method will respond to. |
Methods
IsValidForRequest(ControllerContext, MethodInfo) |
Determines whether the specified method information is valid for the specified controller context. |