RoutingHttpContextExtensions.GetRouteValue(HttpContext, String) Yöntem

Tanım

Sağlanan httpContextile ilişkili yolundan Values bir yol değeri alır.

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

Parametreler

httpContext
HttpContext

HttpContext Geçerli istekle ilişkili.

key
String

Yol değerinin anahtarı.

Döndürülenler

Karşılık gelen yol değeri veya null.

Şunlara uygulanır