Aracılığıyla paylaş


UrlHelperBase.RouteUrl(UrlRouteContext) Yöntem

Tanım

yol adını, yol değerlerini, kullanılacak protokolü, ana bilgisayar adını ve tarafından UrlRouteContextbelirtilen parçayı içeren mutlak yola sahip bir URL oluşturur. ve Host değilsenull mutlak bir URL Protocol oluşturur. Önemli güvenlik bilgileri için açıklamalar bölümüne bakın.

public:
 abstract System::String ^ RouteUrl(Microsoft::AspNetCore::Mvc::Routing::UrlRouteContext ^ routeContext);
public abstract string RouteUrl (Microsoft.AspNetCore.Mvc.Routing.UrlRouteContext routeContext);
public abstract string? RouteUrl (Microsoft.AspNetCore.Mvc.Routing.UrlRouteContext routeContext);
abstract member RouteUrl : Microsoft.AspNetCore.Mvc.Routing.UrlRouteContext -> string
Public MustOverride Function RouteUrl (routeContext As UrlRouteContext) As String

Parametreler

routeContext
UrlRouteContext

Bir yol için oluşturulan URL'ler için bağlam nesnesi.

Döndürülenler

Oluşturulan URL.

Uygulamalar

Şunlara uygulanır