HttpPutAttribute 類別

定義

表示用於限制動作方法只處理 HTTP PUT 要求的屬性。

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class HttpPutAttribute : System.Web.Mvc.ActionMethodSelectorAttribute
type HttpPutAttribute = class
    inherit ActionMethodSelectorAttribute
Public NotInheritable Class HttpPutAttribute
Inherits ActionMethodSelectorAttribute
繼承
屬性

建構函式

HttpPutAttribute()

初始化 HttpPutAttribute 類別的新執行個體。

方法

IsValidForRequest(ControllerContext, MethodInfo)

判斷動作方法 Put 要求對於指定的控制器內容是否有效。

適用於