HttpGetAttribute 构造函数

定义

重载

HttpGetAttribute()

创建一个新的 HttpGetAttribute

HttpGetAttribute(String)

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

HttpGetAttribute()

Source:
HttpGetAttribute.cs
Source:
HttpGetAttribute.cs
Source:
HttpGetAttribute.cs

创建一个新的 HttpGetAttribute

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

适用于

HttpGetAttribute(String)

Source:
HttpGetAttribute.cs
Source:
HttpGetAttribute.cs
Source:
HttpGetAttribute.cs

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

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

参数

template
String

路由模板。 不能为 null。

适用于