HttpGetAttribute Class¶
Identifies an action that only supports the HTTP GET method.
- Namespace
Microsoft.AspNetCore.Mvc- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Inheritance Hierarchy¶
System.ObjectSystem.AttributeMicrosoft.AspNetCore.Mvc.Routing.HttpMethodAttributeMicrosoft.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.HttpGetAttributewith the given route template.Arguments: template (System.String) – The route template. May not be null. public HttpGetAttribute(string template)
-