View Source
Class HttpUrlHelperExtensions
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public static class HttpUrlHelperExtensions
Methods
View Source
GetUmbracoApiService(UrlHelper, String, String, Object)
Return the Url for a Web Api service
Declaration
public static string GetUmbracoApiService(this UrlHelper url, string actionName, string controllerName, object id = null)
Parameters
Type |
Name |
Description |
UrlHelper |
url |
|
System.String |
actionName |
|
System.String |
controllerName |
|
System.Object |
id |
|
Returns
Type |
Description |
System.String |
|
View Source
GetUmbracoApiService(UrlHelper, String, String, String, Object)
Return the Url for a Web Api service
Declaration
public static string GetUmbracoApiService(this UrlHelper url, string actionName, string controllerName, string area, object id = null)
Parameters
Type |
Name |
Description |
UrlHelper |
url |
|
System.String |
actionName |
|
System.String |
controllerName |
|
System.String |
area |
|
System.Object |
id |
|
Returns
Type |
Description |
System.String |
|
View Source
GetUmbracoApiService(UrlHelper, String, Type, Object)
Return the Url for a Web Api service
Declaration
public static string GetUmbracoApiService(this UrlHelper url, string actionName, Type apiControllerType, object id = null)
Parameters
Type |
Name |
Description |
UrlHelper |
url |
|
System.String |
actionName |
|
System.Type |
apiControllerType |
|
System.Object |
id |
|
Returns
Type |
Description |
System.String |
|
View Source
GetUmbracoApiService<T>(UrlHelper, Expression<Func<T, Object>>)
Declaration
public static string GetUmbracoApiService<T>(this UrlHelper url, Expression<Func<T, object>> methodSelector)
where T : UmbracoApiController
Parameters
Type |
Name |
Description |
UrlHelper |
url |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> |
methodSelector |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
View Source
GetUmbracoApiService<T>(UrlHelper, String, Object)
Return the Url for a Web Api service
Declaration
public static string GetUmbracoApiService<T>(this UrlHelper url, string actionName, object id = null)
where T : UmbracoApiController
Parameters
Type |
Name |
Description |
UrlHelper |
url |
|
System.String |
actionName |
|
System.Object |
id |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
View Source
GetUmbracoApiServiceBaseUrl<T>(UrlHelper, Expression<Func<T, Object>>)
Declaration
public static string GetUmbracoApiServiceBaseUrl<T>(this UrlHelper url, Expression<Func<T, object>> methodSelector)
where T : UmbracoApiController
Parameters
Type |
Name |
Description |
UrlHelper |
url |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> |
methodSelector |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
View Source
GetUmbracoApiServiceBaseUrl<T>(UrlHelper, String)
Return the Base Url (not including the action) for a Web Api service
Declaration
public static string GetUmbracoApiServiceBaseUrl<T>(this UrlHelper url, string actionName)
where T : UmbracoApiController
Parameters
Type |
Name |
Description |
UrlHelper |
url |
|
System.String |
actionName |
|
Returns
Type |
Description |
System.String |
|
Type Parameters