HttpHeadAttribute 类

定义

指定 HTTP 请求必须为 HTTP HEAD 方法。

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

构造函数

HttpHeadAttribute()

初始化 HttpHeadAttribute 类的新实例。

方法

IsValidForRequest(ControllerContext, MethodInfo)

确定操作方法请求对指定的控制器上下文是否有效。

适用于