HttpHeadAttribute Class¶
Identifies an action that only supports the HTTP HEAD method.
- Namespace
Microsoft.AspNetCore.Mvc- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.ObjectSystem.AttributeMicrosoft.AspNetCore.Mvc.Routing.HttpMethodAttributeMicrosoft.AspNetCore.Mvc.HttpHeadAttribute
Syntax¶
public class HttpHeadAttribute : HttpMethodAttribute, _Attribute, IActionHttpMethodProvider, IRouteTemplateProvider
-
class
Microsoft.AspNetCore.Mvc.HttpHeadAttribute
Constructors¶
-
HttpHeadAttribute()¶ Creates a new
Microsoft.AspNetCore.Mvc.HttpHeadAttribute.public HttpHeadAttribute()
-
HttpHeadAttribute(System.String) Creates a new
Microsoft.AspNetCore.Mvc.HttpHeadAttributewith the given route template.Arguments: template (System.String) – The route template. May not be null. public HttpHeadAttribute(string template)
-