RouteCollectionExtensions.MapOwinRoute Method
Provides a way to define routes for an OWIN pipeline.
Assembly: Microsoft.Owin.Host.SystemWeb (in Microsoft.Owin.Host.SystemWeb.dll)
RouteCollectionExtensions.MapOwinRoute Method (RouteCollection, String, Action(Of IAppBuilder))
Provides a way to define routes for an OWIN pipeline.
<ExtensionAttribute> Public Shared Function MapOwinRoute ( routes As RouteCollection, routeUrl As String, startup As Action(Of IAppBuilder) ) As Route
Parameters
- routes
-
Type:
System.Web.Routing.RouteCollection
The route collection.
- routeUrl
-
Type:
System.String
The URL pattern for the route.
- startup
-
Type:
System.Action(Of IAppBuilder)
The method to initialize the pipeline that processes requests for the route.
RouteCollectionExtensions.MapOwinRoute Method (RouteCollection, String, RouteValueDictionary, Action(Of IAppBuilder))
Provides a way to define routes for an OWIN pipeline.
<ExtensionAttribute> Public Shared Function MapOwinRoute ( routes As RouteCollection, routeUrl As String, defaults As RouteValueDictionary, startup As Action(Of IAppBuilder) ) As Route
Parameters
- routes
-
Type:
System.Web.Routing.RouteCollection
The route collection.
- routeUrl
-
Type:
System.String
The URL pattern for the route.
- defaults
-
Type:
System.Web.Routing.RouteValueDictionary
The values to use if the URL does not contain all the parameters.
- startup
-
Type:
System.Action(Of IAppBuilder)
The method to initialize the pipeline that processes requests for the route.
RouteCollectionExtensions.MapOwinRoute Method (RouteCollection, String, RouteValueDictionary, RouteValueDictionary, Action(Of IAppBuilder))
Provides a way to define routes for an OWIN pipeline.
<ExtensionAttribute> Public Shared Function MapOwinRoute ( routes As RouteCollection, routeUrl As String, defaults As RouteValueDictionary, constraints As RouteValueDictionary, startup As Action(Of IAppBuilder) ) As Route
Parameters
- routes
-
Type:
System.Web.Routing.RouteCollection
The route collection.
- routeUrl
-
Type:
System.String
The URL pattern for the route.
- defaults
-
Type:
System.Web.Routing.RouteValueDictionary
The values to use if the URL does not contain all the parameters.
- constraints
-
Type:
System.Web.Routing.RouteValueDictionary
A regular expression that specifies valid values for a URL parameter.
- startup
-
Type:
System.Action(Of IAppBuilder)
The method to initialize the pipeline that processes requests for the route.
RouteCollectionExtensions.MapOwinRoute Method (RouteCollection, String, RouteValueDictionary, RouteValueDictionary, RouteValueDictionary, Action(Of IAppBuilder))
Provides a way to define routes for an OWIN pipeline.
<ExtensionAttribute> Public Shared Function MapOwinRoute ( routes As RouteCollection, routeUrl As String, defaults As RouteValueDictionary, constraints As RouteValueDictionary, dataTokens As RouteValueDictionary, startup As Action(Of IAppBuilder) ) As Route
Parameters
- routes
-
Type:
System.Web.Routing.RouteCollection
The route collection.
- routeUrl
-
Type:
System.String
The URL pattern for the route.
- defaults
-
Type:
System.Web.Routing.RouteValueDictionary
The values to use if the URL does not contain all the parameters.
- constraints
-
Type:
System.Web.Routing.RouteValueDictionary
A regular expression that specifies valid values for a URL parameter.
- dataTokens
-
Type:
System.Web.Routing.RouteValueDictionary
Custom values that are passed to the route handler, but which are not used to determine whether the route matches a specific URL pattern. These values are passed to the route handler, where they can be used for processing the request.
- startup
-
Type:
System.Action(Of IAppBuilder)
The method to initialize the pipeline that processes requests for the route.
RouteCollectionExtensions.MapOwinRoute Method (RouteCollection, String, String, Action(Of IAppBuilder))
Provides a way to define routes for an OWIN pipeline.
<ExtensionAttribute> Public Shared Function MapOwinRoute ( routes As RouteCollection, routeName As String, routeUrl As String, startup As Action(Of IAppBuilder) ) As Route
Parameters
- routes
-
Type:
System.Web.Routing.RouteCollection
The route collection.
- routeName
-
Type:
System.String
The name of the route.
- routeUrl
-
Type:
System.String
The URL pattern for the route.
- startup
-
Type:
System.Action(Of IAppBuilder)
The method to initialize the pipeline that processes requests for the route.
RouteCollectionExtensions.MapOwinRoute Method (RouteCollection, String, String, RouteValueDictionary, Action(Of IAppBuilder))
Provides a way to define routes for an OWIN pipeline.
<ExtensionAttribute> Public Shared Function MapOwinRoute ( routes As RouteCollection, routeName As String, routeUrl As String, defaults As RouteValueDictionary, startup As Action(Of IAppBuilder) ) As Route
Parameters
- routes
-
Type:
System.Web.Routing.RouteCollection
The route collection.
- routeName
-
Type:
System.String
The name of the route.
- routeUrl
-
Type:
System.String
The URL pattern for the route.
- defaults
-
Type:
System.Web.Routing.RouteValueDictionary
The values to use if the URL does not contain all the parameters.
- startup
-
Type:
System.Action(Of IAppBuilder)
The method to initialize the pipeline that processes requests for the route.
RouteCollectionExtensions.MapOwinRoute Method (RouteCollection, String, String, RouteValueDictionary, RouteValueDictionary, Action(Of IAppBuilder))
Provides a way to define routes for an OWIN pipeline.
<ExtensionAttribute> Public Shared Function MapOwinRoute ( routes As RouteCollection, routeName As String, routeUrl As String, defaults As RouteValueDictionary, constraints As RouteValueDictionary, startup As Action(Of IAppBuilder) ) As Route
Parameters
- routes
-
Type:
System.Web.Routing.RouteCollection
The route collection.
- routeName
-
Type:
System.String
The name of the route.
- routeUrl
-
Type:
System.String
The URL pattern for the route.
- defaults
-
Type:
System.Web.Routing.RouteValueDictionary
The values to use if the URL does not contain all the parameters.
- constraints
-
Type:
System.Web.Routing.RouteValueDictionary
A regular expression that specifies valid values for a URL parameter.
- startup
-
Type:
System.Action(Of IAppBuilder)
The method to initialize the pipeline that processes requests for the route.
RouteCollectionExtensions.MapOwinRoute Method (RouteCollection, String, String, RouteValueDictionary, RouteValueDictionary, RouteValueDictionary, Action(Of IAppBuilder))
Provides a way to define routes for an OWIN pipeline.
<ExtensionAttribute> Public Shared Function MapOwinRoute ( routes As RouteCollection, routeName As String, routeUrl As String, defaults As RouteValueDictionary, constraints As RouteValueDictionary, dataTokens As RouteValueDictionary, startup As Action(Of IAppBuilder) ) As Route
Parameters
- routes
-
Type:
System.Web.Routing.RouteCollection
The route collection.
- routeName
-
Type:
System.String
The name of the route.
- routeUrl
-
Type:
System.String
The URL pattern for the route.
- defaults
-
Type:
System.Web.Routing.RouteValueDictionary
The values to use if the URL does not contain all the parameters.
- constraints
-
Type:
System.Web.Routing.RouteValueDictionary
A regular expression that specifies valid values for a URL parameter.
- dataTokens
-
Type:
System.Web.Routing.RouteValueDictionary
Custom values that are passed to the route handler, but which are not used to determine whether the route matches a specific URL pattern. These values are passed to the route handler, where they can be used for processing the request.
- startup
-
Type:
System.Action(Of IAppBuilder)
The method to initialize the pipeline that processes requests for the route.

