Class HttpUrlHelperExtensions
Inheritance
System.Object
Namespace:System.Dynamic.ExpandoObject
Assembly:umbraco.dll
Syntax
public static class HttpUrlHelperExtensions
Methods
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 |
System.Web.Http.Routing.UrlHelper |
url |
|
System.String |
actionName |
|
System.String |
controllerName |
|
System.Object |
id |
|
Returns
Type |
Description |
System.String |
|
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 |
System.Web.Http.Routing.UrlHelper |
url |
|
System.String |
actionName |
|
System.String |
controllerName |
|
System.String |
area |
|
System.Object |
id |
|
Returns
Type |
Description |
System.String |
|
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 |
System.Web.Http.Routing.UrlHelper |
url |
|
System.String |
actionName |
|
System.Type |
apiControllerType |
|
System.Object |
id |
|
Returns
Type |
Description |
System.String |
|
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 |
System.Web.Http.Routing.UrlHelper |
url |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> |
methodSelector |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
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 |
System.Web.Http.Routing.UrlHelper |
url |
|
System.String |
actionName |
|
System.Object |
id |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
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 |
System.Web.Http.Routing.UrlHelper |
url |
|
System.Linq.Expressions.Expression<System.Func<T, System.Object>> |
methodSelector |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
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 |
System.Web.Http.Routing.UrlHelper |
url |
|
System.String |
actionName |
|
Returns
Type |
Description |
System.String |
|
Type Parameters