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