Partilhar via


UrlHelper.GenerateUrl Método

Definição

Sobrecargas

GenerateUrl(String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)

Retorna uma cadeia de caracteres que contém uma URL.

GenerateUrl(String, String, String, String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)

Retorna uma cadeia de caracteres que contém uma URL.

GenerateUrl(String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)

Retorna uma cadeia de caracteres que contém uma URL.

public static string GenerateUrl (string routeName, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Routing.RouteCollection routeCollection, System.Web.Routing.RequestContext requestContext, bool includeImplicitMvcValues);
static member GenerateUrl : string * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Routing.RouteCollection * System.Web.Routing.RequestContext * bool -> string
Public Shared Function GenerateUrl (routeName As String, actionName As String, controllerName As String, routeValues As RouteValueDictionary, routeCollection As RouteCollection, requestContext As RequestContext, includeImplicitMvcValues As Boolean) As String

Parâmetros

routeName
String

O nome da rota.

actionName
String

O nome da ação.

controllerName
String

O nome do controlador.

routeValues
RouteValueDictionary

Os valores de rota.

routeCollection
RouteCollection

A coleção de rotas.

requestContext
RequestContext

O contexto da solicitação.

includeImplicitMvcValues
Boolean

true para incluir valores de MVC implícitos; caso contrário, false.

Retornos

Uma cadeia de caracteres que contém uma URL.

Aplica-se a

GenerateUrl(String, String, String, String, String, String, RouteValueDictionary, RouteCollection, RequestContext, Boolean)

Retorna uma cadeia de caracteres que contém uma URL.

public static string GenerateUrl (string routeName, string actionName, string controllerName, string protocol, string hostName, string fragment, System.Web.Routing.RouteValueDictionary routeValues, System.Web.Routing.RouteCollection routeCollection, System.Web.Routing.RequestContext requestContext, bool includeImplicitMvcValues);
static member GenerateUrl : string * string * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Web.Routing.RouteCollection * System.Web.Routing.RequestContext * bool -> string
Public Shared Function GenerateUrl (routeName As String, actionName As String, controllerName As String, protocol As String, hostName As String, fragment As String, routeValues As RouteValueDictionary, routeCollection As RouteCollection, requestContext As RequestContext, includeImplicitMvcValues As Boolean) As String

Parâmetros

routeName
String

O nome da rota.

actionName
String

O nome da ação.

controllerName
String

O nome do controlador.

protocol
String

O protocolo HTTP.

hostName
String

O nome de host.

fragment
String

O fragmento.

routeValues
RouteValueDictionary

Os valores de rota.

routeCollection
RouteCollection

A coleção de rotas.

requestContext
RequestContext

O contexto da solicitação.

includeImplicitMvcValues
Boolean

true para incluir valores de MVC implícitos; caso contrário, false.

Retornos

Uma cadeia de caracteres que contém uma URL.

Aplica-se a