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 请求对指定的控制器上下文是否有效。

适用于