共用方式為


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。

適用於