Table of Contents

Class HttpPostAttribute

Namespace
System.Web.Http
Assembly
System.Web.Http.dll

Specifies that an action supports the POST HTTP method.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class HttpPostAttribute : Attribute, IActionHttpMethodProvider
Inheritance
HttpPostAttribute
Implements
Inherited Members

Constructors

HttpPostAttribute()

Initializes a new instance of the HttpPostAttribute class.

public HttpPostAttribute()

Properties

HttpMethods

Gets the http methods that correspond to this attribute.

public Collection<HttpMethod> HttpMethods { get; }

Property Value

Collection<HttpMethod>

The http methods that correspond to this attribute.