共用方式為


Route.OnRouteMatched(RouteContext) 方法

定義

每當路由發生時,都會以非同步方式執行。

protected:
 override System::Threading::Tasks::Task ^ OnRouteMatched(Microsoft::AspNetCore::Routing::RouteContext ^ context);
protected override System.Threading.Tasks.Task OnRouteMatched (Microsoft.AspNetCore.Routing.RouteContext context);
override this.OnRouteMatched : Microsoft.AspNetCore.Routing.RouteContext -> System.Threading.Tasks.Task
Protected Overrides Function OnRouteMatched (context As RouteContext) As Task

參數

context
RouteContext

RouteContext 執行個體。

傳回

適用於