ODataRoute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ODataRoute(String, ODataPathRouteConstraint) |
Initializes a new instance of the ODataRoute class. |
ODataRoute(String, IHttpRouteConstraint) |
Initializes a new instance of the ODataRoute class. |
ODataRoute(IRouter, String, String, ODataPathRouteConstraint, IInlineConstraintResolver) |
Initializes a new instance of the ODataRoute class. |
ODataRoute(IRouter, String, String, IRouteConstraint, IInlineConstraintResolver) |
Initializes a new instance of the ODataRoute class. |
ODataRoute(String, ODataPathRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler) |
Initializes a new instance of the ODataRoute class. |
ODataRoute(String, IHttpRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler) |
Initializes a new instance of the ODataRoute class. |
ODataRoute(String, ODataPathRouteConstraint)
Initializes a new instance of the ODataRoute class.
public ODataRoute (string routePrefix, Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint pathConstraint);
new Microsoft.AspNet.OData.Routing.ODataRoute : string * Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (routePrefix As String, pathConstraint As ODataPathRouteConstraint)
Parameters
- routePrefix
- String
The route prefix.
- pathConstraint
- ODataPathRouteConstraint
The OData path constraint.
Applies to
ODataRoute(String, IHttpRouteConstraint)
Initializes a new instance of the ODataRoute class.
public ODataRoute (string routePrefix, System.Web.Http.Routing.IHttpRouteConstraint routeConstraint);
new Microsoft.AspNet.OData.Routing.ODataRoute : string * System.Web.Http.Routing.IHttpRouteConstraint -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (routePrefix As String, routeConstraint As IHttpRouteConstraint)
Parameters
- routePrefix
- String
The route prefix.
- routeConstraint
- System.Web.Http.Routing.IHttpRouteConstraint
The route constraint.
Remarks
This signature uses types that are AspNet-specific.
Applies to
ODataRoute(IRouter, String, String, ODataPathRouteConstraint, IInlineConstraintResolver)
Initializes a new instance of the ODataRoute class.
public ODataRoute (Microsoft.AspNetCore.Routing.IRouter target, string routeName, string routePrefix, Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint routeConstraint, Microsoft.AspNetCore.Routing.IInlineConstraintResolver resolver);
new Microsoft.AspNet.OData.Routing.ODataRoute : Microsoft.AspNetCore.Routing.IRouter * string * string * Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (target As IRouter, routeName As String, routePrefix As String, routeConstraint As ODataPathRouteConstraint, resolver As IInlineConstraintResolver)
Parameters
- target
- IRouter
The target router.
- routeName
- String
The route name.
- routePrefix
- String
The route prefix.
- routeConstraint
- ODataPathRouteConstraint
The OData route constraint.
- resolver
- IInlineConstraintResolver
The inline constraint resolver.
Remarks
This signature uses types that are AspNetCore-specific.
Applies to
ODataRoute(IRouter, String, String, IRouteConstraint, IInlineConstraintResolver)
Initializes a new instance of the ODataRoute class.
public ODataRoute (Microsoft.AspNetCore.Routing.IRouter target, string routeName, string routePrefix, Microsoft.AspNetCore.Routing.IRouteConstraint routeConstraint, Microsoft.AspNetCore.Routing.IInlineConstraintResolver resolver);
new Microsoft.AspNet.OData.Routing.ODataRoute : Microsoft.AspNetCore.Routing.IRouter * string * string * Microsoft.AspNetCore.Routing.IRouteConstraint * Microsoft.AspNetCore.Routing.IInlineConstraintResolver -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (target As IRouter, routeName As String, routePrefix As String, routeConstraint As IRouteConstraint, resolver As IInlineConstraintResolver)
Parameters
- target
- IRouter
The target router.
- routeName
- String
The route name.
- routePrefix
- String
The route prefix.
- routeConstraint
- IRouteConstraint
The OData route constraint.
- resolver
- IInlineConstraintResolver
The inline constraint resolver.
Remarks
This signature uses types that are AspNetCore-specific.
Applies to
ODataRoute(String, ODataPathRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)
Initializes a new instance of the ODataRoute class.
public ODataRoute (string routePrefix, Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint pathConstraint, System.Web.Http.Routing.HttpRouteValueDictionary defaults, System.Web.Http.Routing.HttpRouteValueDictionary constraints, System.Web.Http.Routing.HttpRouteValueDictionary dataTokens, System.Net.Http.HttpMessageHandler handler);
new Microsoft.AspNet.OData.Routing.ODataRoute : string * Microsoft.AspNet.OData.Routing.ODataPathRouteConstraint * System.Web.Http.Routing.HttpRouteValueDictionary * System.Web.Http.Routing.HttpRouteValueDictionary * System.Web.Http.Routing.HttpRouteValueDictionary * System.Net.Http.HttpMessageHandler -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (routePrefix As String, pathConstraint As ODataPathRouteConstraint, defaults As HttpRouteValueDictionary, constraints As HttpRouteValueDictionary, dataTokens As HttpRouteValueDictionary, handler As HttpMessageHandler)
Parameters
- routePrefix
- String
The route prefix.
- pathConstraint
- ODataPathRouteConstraint
The OData path constraint.
- defaults
- System.Web.Http.Routing.HttpRouteValueDictionary
The default values for the route.
- constraints
- System.Web.Http.Routing.HttpRouteValueDictionary
The route constraints.
- dataTokens
- System.Web.Http.Routing.HttpRouteValueDictionary
The data tokens.
- handler
- HttpMessageHandler
The message handler for the route.
Remarks
This signature uses types that are AspNet-specific.
Applies to
ODataRoute(String, IHttpRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)
Initializes a new instance of the ODataRoute class.
public ODataRoute (string routePrefix, System.Web.Http.Routing.IHttpRouteConstraint routeConstraint, System.Web.Http.Routing.HttpRouteValueDictionary defaults, System.Web.Http.Routing.HttpRouteValueDictionary constraints, System.Web.Http.Routing.HttpRouteValueDictionary dataTokens, System.Net.Http.HttpMessageHandler handler);
new Microsoft.AspNet.OData.Routing.ODataRoute : string * System.Web.Http.Routing.IHttpRouteConstraint * System.Web.Http.Routing.HttpRouteValueDictionary * System.Web.Http.Routing.HttpRouteValueDictionary * System.Web.Http.Routing.HttpRouteValueDictionary * System.Net.Http.HttpMessageHandler -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Sub New (routePrefix As String, routeConstraint As IHttpRouteConstraint, defaults As HttpRouteValueDictionary, constraints As HttpRouteValueDictionary, dataTokens As HttpRouteValueDictionary, handler As HttpMessageHandler)
Parameters
- routePrefix
- String
The route prefix.
- routeConstraint
- System.Web.Http.Routing.IHttpRouteConstraint
The route constraint.
- defaults
- System.Web.Http.Routing.HttpRouteValueDictionary
The default values for the route.
- constraints
- System.Web.Http.Routing.HttpRouteValueDictionary
The route constraints.
- dataTokens
- System.Web.Http.Routing.HttpRouteValueDictionary
The data tokens.
- handler
- HttpMessageHandler
The message handler for the route.
Remarks
This signature uses types that are AspNet-specific.