Table of Contents

Class HttpHeadAttribute

Namespace
System.Web.Http
Assembly
System.Web.Http.dll

Specifies that an action supports the HEAD HTTP method.

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

Constructors

HttpHeadAttribute()

Initializes a new instance of the HttpHeadAttribute class.

public HttpHeadAttribute()

Properties

HttpMethods

Gets the http methods that correspond to this attribute.

public Collection<HttpMethod> HttpMethods { get; }

Property Value

Collection<HttpMethod>

The http methods that correspond to this attribute.