Partager via


ODataPathRouteConstraint Constructor (IODataPathHandler, IEdmModel, String, IEnumerable<IODataRoutingConvention>)

 

Initializes a new instance of the ODataPathRouteConstraint class.

Namespace:   System.Web.OData.Routing
Assembly:  System.Web.OData (in System.Web.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

  • routeName
    Type: System.String

    The name of the route this constraint is associated with.

See Also

ODataPathRouteConstraint Class
System.Web.OData.Routing Namespace

Return to top