RouteAttribute(String) 建構函式

定義

使用指定的路由範本建立新的 RouteAttribute

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

參數

template
String

路由範本。 可能是 null。

適用於