HttpPatchAttribute Class

Identifies an action that only supports the HTTP PATCH method.

Namespace
Microsoft.AspNetCore.Mvc
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

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)