Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace:   System.Web.Http.OData.Routing
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
| Name | Description | |
|---|---|---|
| .jpeg) | ODataRoute(String, ODataPathRouteConstraint) | Initializes a new instance of the ODataRoute class. | 
| .jpeg) | ODataRoute(String, ODataPathRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler) | Initializes a new instance of the ODataRoute class. | 
See Also
ODataRoute Class
System.Web.Http.OData.Routing Namespace
Return to top
ODataRoute Constructor (String, ODataPathRouteConstraint)
Initializes a new instance of the ODataRoute class.
Syntax
public ODataRoute(
    string routePrefix,
    ODataPathRouteConstraint pathConstraint
)
public:
ODataRoute(
    String^ routePrefix,
    ODataPathRouteConstraint^ pathConstraint
)
new : 
        routePrefix:string *
        pathConstraint:ODataPathRouteConstraint -> ODataRoute
Public Sub New (
    routePrefix As String,
    pathConstraint As ODataPathRouteConstraint
)
Parameters
- routePrefix 
 Type: System.String- The route prefix. 
- pathConstraint 
 Type: System.Web.Http.OData.Routing.ODataPathRouteConstraint- The OData path constraint. 
Return to top
ODataRoute Constructor (String, ODataPathRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)
Initializes a new instance of the ODataRoute class.
Syntax
public ODataRoute(
    string routePrefix,
    ODataPathRouteConstraint pathConstraint,
    HttpRouteValueDictionary defaults,
    HttpRouteValueDictionary constraints,
    HttpRouteValueDictionary dataTokens,
    HttpMessageHandler handler
)
public:
ODataRoute(
    String^ routePrefix,
    ODataPathRouteConstraint^ pathConstraint,
    HttpRouteValueDictionary^ defaults,
    HttpRouteValueDictionary^ constraints,
    HttpRouteValueDictionary^ dataTokens,
    HttpMessageHandler^ handler
)
new : 
        routePrefix:string *
        pathConstraint:ODataPathRouteConstraint *
        defaults:HttpRouteValueDictionary *
        constraints:HttpRouteValueDictionary *
        dataTokens:HttpRouteValueDictionary *
        handler:HttpMessageHandler -> ODataRoute
Public Sub New (
    routePrefix As String,
    pathConstraint As ODataPathRouteConstraint,
    defaults As HttpRouteValueDictionary,
    constraints As HttpRouteValueDictionary,
    dataTokens As HttpRouteValueDictionary,
    handler As HttpMessageHandler
)
Parameters
- routePrefix 
 Type: System.String- The route prefix. 
- pathConstraint 
 Type: System.Web.Http.OData.Routing.ODataPathRouteConstraint- The OData path constraint. 
- defaults 
 Type: System.Web.Http.Routing.HttpRouteValueDictionary- The default values for the route. 
- constraints 
 Type: System.Web.Http.Routing.HttpRouteValueDictionary- The route constraints. 
- dataTokens 
 Type: System.Web.Http.Routing.HttpRouteValueDictionary- The data tokens. 
- handler 
 Type: System.Net.Http.HttpMessageHandler- The message handler for the route. 
Return to top