共用方式為


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 為 。

適用於