View Source
Class LinkGeneratorExtensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class LinkGeneratorExtensions
Methods
View Source
GetUmbracoApiServiceBaseUrl<T>(LinkGenerator, Expression<Func<T, object?>>)
Declaration
[Obsolete("This will be removed in Umbraco 15.")]
public static string? GetUmbracoApiServiceBaseUrl<T>(this LinkGenerator linkGenerator, Expression<Func<T, object?>> methodSelector) where T : UmbracoApiControllerBase
Parameters
| Type |
Name |
Description |
| LinkGenerator |
linkGenerator |
|
| Expression<Func<T, object>> |
methodSelector |
|
Returns
Type Parameters
View Source
GetUmbracoApiService<T>(LinkGenerator, Expression<Func<T, object>>)
Declaration
[Obsolete("This will be removed in Umbraco 15.")]
public static string? GetUmbracoApiService<T>(this LinkGenerator linkGenerator, Expression<Func<T, object>> methodSelector) where T : UmbracoApiController
Parameters
| Type |
Name |
Description |
| LinkGenerator |
linkGenerator |
|
| Expression<Func<T, object>> |
methodSelector |
|
Returns
Type Parameters
View Source
GetUmbracoApiService<T>(LinkGenerator, string, IDictionary<string, object?>?)
Declaration
[Obsolete("This will be removed in Umbraco 15.")]
public static string? GetUmbracoApiService<T>(this LinkGenerator linkGenerator, string actionName, IDictionary<string, object?>? values) where T : UmbracoApiControllerBase
Parameters
| Type |
Name |
Description |
| LinkGenerator |
linkGenerator |
|
| string |
actionName |
|
| IDictionary<string, object> |
values |
|
Returns
Type Parameters
View Source
GetUmbracoApiService<T>(LinkGenerator, string, object?)
Return the Url for a Web Api service
Declaration
[Obsolete("This will be removed in Umbraco 15.")]
public static string? GetUmbracoApiService<T>(this LinkGenerator linkGenerator, string actionName, object? id = null) where T : UmbracoApiControllerBase
Parameters
| Type |
Name |
Description |
| LinkGenerator |
linkGenerator |
|
| string |
actionName |
|
| object |
id |
|
Returns
Type Parameters
View Source
GetUmbracoControllerUrl(LinkGenerator, string, string, string?, IDictionary<string, object?>?)
Return the Url for an Umbraco controller
Declaration
public static string? GetUmbracoControllerUrl(this LinkGenerator linkGenerator, string actionName, string controllerName, string? area, IDictionary<string, object?>? dict = null)
Parameters
| Type |
Name |
Description |
| LinkGenerator |
linkGenerator |
|
| string |
actionName |
|
| string |
controllerName |
|
| string |
area |
|
| IDictionary<string, object> |
dict |
|
Returns
View Source
GetUmbracoControllerUrl(LinkGenerator, string, Type, IDictionary<string, object?>?)
Return the Url for an Umbraco controller
Declaration
public static string? GetUmbracoControllerUrl(this LinkGenerator linkGenerator, string actionName, Type controllerType, IDictionary<string, object?>? values = null)
Parameters
| Type |
Name |
Description |
| LinkGenerator |
linkGenerator |
|
| string |
actionName |
|
| Type |
controllerType |
|
| IDictionary<string, object> |
values |
|
Returns
View Source
GetUmbracoSurfaceUrl<T>(LinkGenerator, Expression<Func<T, object>>)
Return the Url for a Surface Controller
Declaration
public static string? GetUmbracoSurfaceUrl<T>(this LinkGenerator linkGenerator, Expression<Func<T, object>> methodSelector) where T : SurfaceController
Parameters
| Type |
Name |
Description |
| LinkGenerator |
linkGenerator |
|
| Expression<Func<T, object>> |
methodSelector |
|
Returns
Type Parameters
View Source
GetUmbracoSurfaceUrl<T>(LinkGenerator, string, object?)
Return the Url for a Surface Controller
Declaration
public static string? GetUmbracoSurfaceUrl<T>(this LinkGenerator linkGenerator, string actionName, object? id = null) where T : SurfaceController
Parameters
| Type |
Name |
Description |
| LinkGenerator |
linkGenerator |
|
| string |
actionName |
|
| object |
id |
|
Returns
Type Parameters