Udostępnij za pośrednictwem


RouteHandler.GetRequestHandler(HttpContext, RouteData) Metoda

Definicja

Pobiera element RequestDelegate do obsługi żądania na podstawie podanego routeDataelementu .

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

Parametry

httpContext
HttpContext

Element HttpContext skojarzony z bieżącym żądaniem.

routeData
RouteData

Element RouteData skojarzony z bieżącym dopasowaniem routingu.

Zwraca

Element RequestDelegatelub null jeśli program obsługi nie może obsłużyć tego żądania.

Implementuje

Dotyczy