RouteCollection.GetVirtualPath(VirtualPathContext) 方法

定义

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

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

参数

context
VirtualPathContext

一个 VirtualPathContext 实例。

返回

VirtualPathData 对象。 可以为 null。

实现

适用于