共用方式為


RoutingHttpContextExtensions.GetRouteData(HttpContext) 方法

定義

取得與所提供 httpContext 建立關聯的 RouteData

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Routing::RouteData ^ GetRouteData(Microsoft::AspNetCore::Http::HttpContext ^ httpContext);
public static Microsoft.AspNetCore.Routing.RouteData GetRouteData (this Microsoft.AspNetCore.Http.HttpContext httpContext);
static member GetRouteData : Microsoft.AspNetCore.Http.HttpContext -> Microsoft.AspNetCore.Routing.RouteData
<Extension()>
Public Function GetRouteData (httpContext As HttpContext) As RouteData

參數

httpContext
HttpContext

HttpContext與目前要求相關聯的 。

傳回

RouteData

適用於