UrlHelper.RouteUrl Method
Generates a fully qualified URL.
| Name | Description | |
|---|---|---|
|
RouteUrl(Object) | Generates a fully qualified URL for the specified route values. |
|
RouteUrl(String) | Generates a fully qualified URL for the specified route name. |
|
RouteUrl(RouteValueDictionary) | Generates a fully qualified URL for the specified route values. |
|
RouteUrl(String, Object) | Generates a fully qualified URL for the specified route values by using a route name. |
|
RouteUrl(String, RouteValueDictionary) | Generates a fully qualified URL for the specified route values by using a route name. |
|
RouteUrl(String, Object, String) | Generates a fully qualified URL for the specified route values by using a route name and the protocol to use. |
|
RouteUrl(String, RouteValueDictionary, String, String) | Generates a fully qualified URL for the specified route values by using the specified route name, protocol to use, and host name. |
The URL returned by this method will be similar to "\Home\About". If you need the URL encoded, use the Encode method, which would return "%2fHome%2fAbout" given the foregoing URL.