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

适用于