UrlHelperBase.RouteUrl(UrlRouteContext) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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.