UrlHelper.GetVirtualPathData(String, RouteValueDictionary) 方法

定义

VirtualPathData获取指定 routeName 和路由 values的 。

protected:
 virtual Microsoft::AspNetCore::Routing::VirtualPathData ^ GetVirtualPathData(System::String ^ routeName, Microsoft::AspNetCore::Routing::RouteValueDictionary ^ values);
protected virtual Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPathData (string routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
protected virtual Microsoft.AspNetCore.Routing.VirtualPathData? GetVirtualPathData (string? routeName, Microsoft.AspNetCore.Routing.RouteValueDictionary values);
abstract member GetVirtualPathData : string * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.VirtualPathData
override this.GetVirtualPathData : string * Microsoft.AspNetCore.Routing.RouteValueDictionary -> Microsoft.AspNetCore.Routing.VirtualPathData
Protected Overridable Function GetVirtualPathData (routeName As String, values As RouteValueDictionary) As VirtualPathData

参数

routeName
String

用于生成 的 VirtualPathData路由的名称。

values
RouteValueDictionary

RouteValueDictionaryRouter将这些值与 AmbientValues结合使用来生成 URL。

返回

VirtualPathData

适用于