System.Web.Mvc Namespace


.NET Framework Class Library
AcceptVerbsAttribute Class

Represents an attribute that specifies which HTTP verbs an action method will respond to.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
Syntax

Visual Basic (Declaration)
<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple := False, Inherited := True)> _
Public NotInheritable Class AcceptVerbsAttribute _
    Inherits ActionMethodSelectorAttribute
Visual Basic (Usage)
Dim instance As AcceptVerbsAttribute
C#
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class AcceptVerbsAttribute : ActionMethodSelectorAttribute
Visual C++
[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = false, Inherited = true)]
public ref class AcceptVerbsAttribute sealed : public ActionMethodSelectorAttribute
Remarks

For more information about using attributes, see Extending Metadata Using Attributes.

Inheritance Hierarchy

System..::.Object
  System..::.Attribute
    System.Web.Mvc..::.ActionMethodSelectorAttribute
      System.Web.Mvc..::.AcceptVerbsAttribute
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also

Reference

Tags :


Page view tracker