Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpHeadAttribute Class

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

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

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

The HttpHeadAttribute type exposes the following members.

  NameDescription
Public methodHttpHeadAttributeInitializes a new instance of the HttpHeadAttribute class.
Top

  NameDescription
Public propertyTypeId (Inherited from Attribute.)
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodIsValidForRequestDetermines whether the action method request is valid for the specified controller context. (Overrides ActionMethodSelectorAttribute.IsValidForRequest(ControllerContext, MethodInfo).)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Top

Represents an attribute that is used to restrict an action method so that the method handles only HTTP HEAD requests.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft