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)

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

適用於