HttpDeleteAttribute Class

Identifies an action that only supports the HTTP DELETE method.

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

Syntax

public class HttpDeleteAttribute : HttpMethodAttribute, _Attribute, IActionHttpMethodProvider, IRouteTemplateProvider
class Microsoft.AspNetCore.Mvc.HttpDeleteAttribute

Constructors

HttpDeleteAttribute()

Creates a new Microsoft.AspNetCore.Mvc.HttpDeleteAttribute.

public HttpDeleteAttribute()
HttpDeleteAttribute(System.String)

Creates a new Microsoft.AspNetCore.Mvc.HttpDeleteAttribute with the given route template.

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