Table of Contents

Class HttpHeadAttribute

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Specifies that the HTTP request must be the HTTP HEAD method.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HttpHeadAttribute : ActionMethodSelectorAttribute
Inheritance
HttpHeadAttribute
Inherited Members

Constructors

HttpHeadAttribute()

Initializes a new instance of the HttpHeadAttribute class.

public HttpHeadAttribute()

Methods

IsValidForRequest(ControllerContext, MethodInfo)

Determines whether the action method request is valid for the specified controller context.

public override bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo)

Parameters

controllerContext ControllerContext

The controller context.

methodInfo MethodInfo

Information about the action method.

Returns

bool

true if the action method request is valid for the specified controller context; otherwise, false.