HttpHeadAttribute Class

Summary

Identifies an action that only supports the HTTP HEAD method.

Syntax

public class HttpHeadAttribute : HttpMethodAttribute, _Attribute, IActionHttpMethodProvider, IRouteTemplateProvider

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.HttpHeadAttribute

Constructors

Microsoft.AspNet.Mvc.HttpHeadAttribute.HttpHeadAttribute()

Creates a new [Microsoft.AspNet.Mvc.HttpHeadAttribute](Microsoft.AspNet.Mvc.HttpHeadAttribute.yml).

public HttpHeadAttribute()
HttpHeadAttribute(System.String)

Creates a new [Microsoft.AspNet.Mvc.HttpHeadAttribute](Microsoft.AspNet.Mvc.HttpHeadAttribute.yml) with the given route template.

Arguments:
  • template (System.String) – The route template. May not be null.
public HttpHeadAttribute(string template)