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[])

使用動作方法將回應的 HTTP 動詞清單,初始化 類別的新實例 AcceptVerbsAttribute

屬性

Verbs

取得或設定動作方法所將回應的 HTTP 動詞命令清單。

方法

IsValidForRequest(ControllerContext, MethodInfo)

判斷指定之方法資訊對於指定的控制器內容是否有效。

適用於