IRouteHandler.GetRequestHandler(HttpContext, RouteData) 方法

定义

RequestDelegate根据提供的 routeData获取用于处理请求的 。

public:
 Microsoft::AspNetCore::Http::RequestDelegate ^ GetRequestHandler(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, Microsoft::AspNetCore::Routing::RouteData ^ routeData);
public Microsoft.AspNetCore.Http.RequestDelegate GetRequestHandler (Microsoft.AspNetCore.Http.HttpContext httpContext, Microsoft.AspNetCore.Routing.RouteData routeData);
abstract member GetRequestHandler : Microsoft.AspNetCore.Http.HttpContext * Microsoft.AspNetCore.Routing.RouteData -> Microsoft.AspNetCore.Http.RequestDelegate
Public Function GetRequestHandler (httpContext As HttpContext, routeData As RouteData) As RequestDelegate

参数

httpContext
HttpContext

HttpContext与当前请求关联的 。

routeData
RouteData

RouteData与当前路由匹配项关联的 。

返回

RequestDelegate如果处理程序无法处理此请求,则为 null 或 。

适用于