IRouter.GetVirtualPath(VirtualPathContext) 方法

定义

返回与 中提供的路由详细信息关联的 URL context

public:
 Microsoft::AspNetCore::Routing::VirtualPathData ^ GetVirtualPath(Microsoft::AspNetCore::Routing::VirtualPathContext ^ context);
public Microsoft.AspNetCore.Routing.VirtualPathData GetVirtualPath (Microsoft.AspNetCore.Routing.VirtualPathContext context);
public Microsoft.AspNetCore.Routing.VirtualPathData? GetVirtualPath (Microsoft.AspNetCore.Routing.VirtualPathContext context);
abstract member GetVirtualPath : Microsoft.AspNetCore.Routing.VirtualPathContext -> Microsoft.AspNetCore.Routing.VirtualPathData
Public Function GetVirtualPath (context As VirtualPathContext) As VirtualPathData

参数

context
VirtualPathContext

一个 VirtualPathContext 实例。

返回

VirtualPathData 对象。 可以为 null。

适用于