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