RouteValueAttribute(String, String) 构造函数

定义

创建一个新的 RouteValueAttribute

protected:
 RouteValueAttribute(System::String ^ routeKey, System::String ^ routeValue);
protected RouteValueAttribute (string routeKey, string routeValue);
new Microsoft.AspNetCore.Mvc.Routing.RouteValueAttribute : string * string -> Microsoft.AspNetCore.Mvc.Routing.RouteValueAttribute
Protected Sub New (routeKey As String, routeValue As String)

参数

routeKey
String

路由值键。

routeValue
String

预期的路由值。

适用于