Share via


ODataRoute Constructor

 

Namespace:   System.Web.Http.OData.Routing
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)

Overload List

Name Description
System_CAPS_pubmethod ODataRoute(String, ODataPathRouteConstraint)

Initializes a new instance of the ODataRoute class.

System_CAPS_pubmethod 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

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

Return to top