共用方式為


Route.OnVirtualPathGenerated(VirtualPathContext) 方法

定義

每當虛擬路徑衍生自 context 時執行。

protected:
 override Microsoft::AspNetCore::Routing::VirtualPathData ^ OnVirtualPathGenerated(Microsoft::AspNetCore::Routing::VirtualPathContext ^ context);
protected override Microsoft.AspNetCore.Routing.VirtualPathData OnVirtualPathGenerated (Microsoft.AspNetCore.Routing.VirtualPathContext context);
protected override Microsoft.AspNetCore.Routing.VirtualPathData? OnVirtualPathGenerated (Microsoft.AspNetCore.Routing.VirtualPathContext context);
override this.OnVirtualPathGenerated : Microsoft.AspNetCore.Routing.VirtualPathContext -> Microsoft.AspNetCore.Routing.VirtualPathData
Protected Overrides Function OnVirtualPathGenerated (context As VirtualPathContext) As VirtualPathData

參數

context
VirtualPathContext

VirtualPathContext 執行個體。

傳回

VirtualPathData 執行個體。

適用於