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
pathHandler
Type: System.Web.OData.Routing.IODataPathHandlerThe OData path handler to use for parsing.
model
Type: Microsoft.OData.Edm.IEdmModelThe EDM model to use for parsing the path.
routeName
Type: System.StringThe 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.OData.Routing Namespace
Return to top