HttpPostAttribute 构造函数

定义

重载

HttpPostAttribute()

创建一个新的 HttpPostAttribute

HttpPostAttribute(String)

使用给定的路由模板创建新的 HttpPostAttribute

HttpPostAttribute()

Source:
HttpPostAttribute.cs
Source:
HttpPostAttribute.cs
Source:
HttpPostAttribute.cs

创建一个新的 HttpPostAttribute

public:
 HttpPostAttribute();
public HttpPostAttribute ();
Public Sub New ()

适用于

HttpPostAttribute(String)

Source:
HttpPostAttribute.cs
Source:
HttpPostAttribute.cs
Source:
HttpPostAttribute.cs

使用给定的路由模板创建新的 HttpPostAttribute

public:
 HttpPostAttribute(System::String ^ template);
public HttpPostAttribute (string template);
new Microsoft.AspNetCore.Mvc.HttpPostAttribute : string -> Microsoft.AspNetCore.Mvc.HttpPostAttribute
Public Sub New (template As String)

参数

template
String

路由模板。 不能为 null。

适用于