Condividi tramite


UrlHelper.RouteUrl(UrlRouteContext) Metodo

Definizione

Genera un URL con un percorso assoluto, che contiene il nome della route, i valori di route, il protocollo da usare, il nome host e il frammento specificati da UrlRouteContext. Genera un URL assoluto se Protocol e Host nonnull sono. Per informazioni importanti sulla sicurezza, vedere la sezione osservazioni.

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

Parametri

routeContext
UrlRouteContext

Oggetto di contesto per gli URL generati per una route.

Restituisce

URL generato.

Implementazioni

Si applica a