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