HttpPutAttribute Class

Summary

Identifies an action that only supports the HTTP PUT method.

Syntax

public class HttpPutAttribute : HttpMethodAttribute, _Attribute, IActionHttpMethodProvider, IRouteTemplateProvider

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.HttpPutAttribute

Constructors

Microsoft.AspNet.Mvc.HttpPutAttribute.HttpPutAttribute()

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

public HttpPutAttribute()
HttpPutAttribute(System.String)

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

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