ODataRoute Constructor
Namespace: System.Web.OData.Routing
Assembly: System.Web.OData (in System.Web.OData.dll)
Overload List
Name | Description | |
---|---|---|
ODataRoute(String, ODataPathRouteConstraint) | Initializes a new instance of the ODataRoute class. |
|
ODataRoute(String, ODataPathRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler) | Initializes a new instance of the ODataRoute class. |
See Also
ODataRoute Class
System.Web.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.StringThe route prefix.
pathConstraint
Type: System.Web.OData.Routing.ODataPathRouteConstraintThe 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.StringThe route prefix.
pathConstraint
Type: System.Web.OData.Routing.ODataPathRouteConstraintThe OData path constraint.
defaults
Type: System.Web.Http.Routing.HttpRouteValueDictionaryThe default values for the route.
constraints
Type: System.Web.Http.Routing.HttpRouteValueDictionaryThe route constraints.
dataTokens
Type: System.Web.Http.Routing.HttpRouteValueDictionaryThe data tokens.
handler
Type: System.Net.Http.HttpMessageHandlerThe message handler for the route.
Return to top