HttpPostAttribute Class

Definition

Identifies an action that only supports the HTTP POST method.

public class HttpPostAttribute : Microsoft.AspNetCore.Mvc.Routing.HttpMethodAttribute
Inheritance
HttpPostAttribute

Constructors

HttpPostAttribute()

Creates a new HttpPostAttribute.

HttpPostAttribute(String)

Creates a new HttpPostAttribute with the given route template.

Properties

HttpMethods Inherited from HttpMethodAttribute
IRouteTemplateProvider.Order Inherited from HttpMethodAttribute
Name Inherited from HttpMethodAttribute
Order Inherited from HttpMethodAttribute
Template Inherited from HttpMethodAttribute

Applies to