HttpHeadAttribute Class¶
Identifies an action that only supports the HTTP HEAD method.
- Namespace
Microsoft.AspNetCore.Mvc
- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.Object
System.Attribute
Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
Microsoft.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.HttpHeadAttribute
with the given route template.Arguments: template (System.String) – The route template. May not be null. public HttpHeadAttribute(string template)
-