View Source
Class RouteCollectionExtensions
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public static class RouteCollectionExtensions
Methods
View Source
IgnoreStandardExclusions(RouteCollection)
Declaration
public static void IgnoreStandardExclusions(this RouteCollection routes)
Parameters
Type |
Name |
Description |
System.Web.Routing.RouteCollection |
routes |
|
View Source
MapHttpRoute(RouteCollection, String, String, Object, String[])
Routes a webapi controller with namespaces
Declaration
public static Route MapHttpRoute(this RouteCollection routes, string name, string url, object defaults, string[] namespaces)
Parameters
Type |
Name |
Description |
System.Web.Routing.RouteCollection |
routes |
|
System.String |
name |
|
System.String |
url |
|
System.Object |
defaults |
|
System.String[] |
namespaces |
|
Returns
Type |
Description |
System.Web.Routing.Route |
|
View Source
MapUmbracoRoute(RouteCollection, String, String, Object, UmbracoVirtualNodeRouteHandler, Object, String[])
Maps an Umbraco route with an UmbracoVirtualNodeRouteHandler
Declaration
public static Route MapUmbracoRoute(this RouteCollection routes, string name, string url, object defaults, UmbracoVirtualNodeRouteHandler virtualNodeHandler, object constraints = null, string[] namespaces = null)
Parameters
Type |
Name |
Description |
System.Web.Routing.RouteCollection |
routes |
|
System.String |
name |
|
System.String |
url |
|
System.Object |
defaults |
|
UmbracoVirtualNodeRouteHandler |
virtualNodeHandler |
|
System.Object |
constraints |
|
System.String[] |
namespaces |
|
Returns
Type |
Description |
System.Web.Routing.Route |
|
View Source
RegisterArea<T>(RouteCollection)
Extension method to manually register an area
Declaration
public static void RegisterArea<T>(this RouteCollection routes)
where T : AreaRegistration, new()
Parameters
Type |
Name |
Description |
System.Web.Routing.RouteCollection |
routes |
|
Type Parameters
View Source
RegisterArea<T>(RouteCollection, T)
Declaration
public static void RegisterArea<T>(this RouteCollection routes, T area)
where T : AreaRegistration
Parameters
Type |
Name |
Description |
System.Web.Routing.RouteCollection |
routes |
|
T |
area |
|
Type Parameters