HttpDeleteAttribute Class

Summary

Identifies an action that only supports the HTTP DELETE method.

Syntax

public class HttpDeleteAttribute : HttpMethodAttribute, _Attribute, IActionHttpMethodProvider, IRouteTemplateProvider

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.HttpDeleteAttribute

Constructors

Microsoft.AspNet.Mvc.HttpDeleteAttribute.HttpDeleteAttribute()

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

public HttpDeleteAttribute()
HttpDeleteAttribute(System.String)

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

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