Compartir a través de


RoutingHttpContextExtensions.GetRouteValue(HttpContext, String) Método

Definición

Obtiene un valor de ruta de Values asociado al proporcionado httpContext.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Object ^ GetRouteValue(Microsoft::AspNetCore::Http::HttpContext ^ httpContext, System::String ^ key);
public static object GetRouteValue (this Microsoft.AspNetCore.Http.HttpContext httpContext, string key);
public static object? GetRouteValue (this Microsoft.AspNetCore.Http.HttpContext httpContext, string key);
static member GetRouteValue : Microsoft.AspNetCore.Http.HttpContext * string -> obj
<Extension()>
Public Function GetRouteValue (httpContext As HttpContext, key As String) As Object

Parámetros

httpContext
HttpContext

asociado HttpContext a la solicitud actual.

key
String

Clave del valor de ruta.

Devoluciones

Valor de ruta correspondiente o null.

Se aplica a