AcceptVerbsAttribute 类

定义

表示一个特性,该特性指定操作方法将响应的 HTTP 谓词。

[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
继承
属性

构造函数

AcceptVerbsAttribute(HttpVerbs)

使用操作方法将响应的 AcceptVerbsAttribute HTTP 谓词初始化 类的新实例。

AcceptVerbsAttribute(String[])

使用操作方法将响应的 AcceptVerbsAttribute HTTP 谓词列表初始化 类的新实例。

属性

Verbs

获取或设置操作方法将响应的 HTTP 谓词的列表。

方法

IsValidForRequest(ControllerContext, MethodInfo)

确定指定的方法信息对指定的控制器上下文是否有效。

适用于