AcceptVerbsAttribute Class

Definition

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.

Applies to