HttpPatchAttribute Class

Summary

Identifies an action that only supports the HTTP PATCH method.

Syntax

public class HttpPatchAttribute : HttpMethodAttribute, _Attribute, IActionHttpMethodProvider, IRouteTemplateProvider

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.HttpPatchAttribute

Constructors

Microsoft.AspNet.Mvc.HttpPatchAttribute.HttpPatchAttribute()

Creates a new [Microsoft.AspNet.Mvc.HttpPatchAttribute](Microsoft.AspNet.Mvc.HttpPatchAttribute.yml).

public HttpPatchAttribute()
HttpPatchAttribute(System.String)

Creates a new [Microsoft.AspNet.Mvc.HttpPatchAttribute](Microsoft.AspNet.Mvc.HttpPatchAttribute.yml) with the given route template.

Arguments:
  • template (System.String) – The route template. May not be null.
public HttpPatchAttribute(string template)