Condividi tramite


RoutingHttpContextExtensions.GetRouteValue(HttpContext, String) Metodo

Definizione

Ottiene un valore di route da Values associato all'oggetto specificato 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

Parametri

httpContext
HttpContext

Oggetto HttpContext associato alla richiesta corrente.

key
String

Chiave del valore di route.

Restituisce

Valore di route corrispondente o Null.

Si applica a