RouteHandler.GetRequestHandler(HttpContext, RouteData) 方法

定义

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

public:
 virtual 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
override this.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

实现

适用于