Partager via


RouteHandler.GetRequestHandler(HttpContext, RouteData) Méthode

Définition

Obtient un RequestDelegate pour gérer la demande, en fonction du fourni 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

Paramètres

httpContext
HttpContext

HttpContext associé à la demande actuelle.

routeData
RouteData

RouteData associé à la correspondance de routage actuelle.

Retours

ou RequestDelegatenull si le gestionnaire ne peut pas gérer cette requête.

Implémente

S’applique à