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.
Initializes a new instance of the ODataPathRouteConstraint class.
Namespace:   System.Web.Http.OData.Routing
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
public ODataPathRouteConstraint(
    IODataPathHandler pathHandler,
    IEdmModel model,
    string routeName,
    IEnumerable<IODataRoutingConvention> routingConventions
)
public:
ODataPathRouteConstraint(
    IODataPathHandler^ pathHandler,
    IEdmModel^ model,
    String^ routeName,
    IEnumerable<IODataRoutingConvention^>^ routingConventions
)
new : 
        pathHandler:IODataPathHandler *
        model:IEdmModel *
        routeName:string *
        routingConventions:IEnumerable<IODataRoutingConvention> -> ODataPathRouteConstraint
Public Sub New (
    pathHandler As IODataPathHandler,
    model As IEdmModel,
    routeName As String,
    routingConventions As IEnumerable(Of IODataRoutingConvention)
)
Parameters
- pathHandler 
 Type: System.Web.Http.OData.Routing.IODataPathHandler- The OData path handler to use for parsing. 
- model 
 Type: Microsoft.Data.Edm.IEdmModel- The EDM model to use for parsing the path. 
- routeName 
 Type: System.String- The name of the route this constraint is associated with. 
- routingConventions 
 Type: System.Collections.Generic.IEnumerable<IODataRoutingConvention>- The OData routing conventions to use for selecting the controller name. 
See Also
ODataPathRouteConstraint Class
System.Web.Http.OData.Routing Namespace
Return to top