ODataPathRouteConstraint Class
An implementation of IHttpRouteConstraint that only matches OData paths.
Namespace: System.Web.OData.Routing
Assembly: System.Web.OData (in System.Web.OData.dll)
Inheritance Hierarchy
System.Object
System.Web.OData.Routing.ODataPathRouteConstraint
Syntax
public class ODataPathRouteConstraint : IHttpRouteConstraint
public ref class ODataPathRouteConstraint : IHttpRouteConstraint
type ODataPathRouteConstraint =
class
interface IHttpRouteConstraint
end
Public Class ODataPathRouteConstraint
Implements IHttpRouteConstraint
Constructors
Name | Description | |
---|---|---|
ODataPathRouteConstraint(IODataPathHandler, IEdmModel, String, IEnumerable<IODataRoutingConvention>) | Initializes a new instance of the ODataPathRouteConstraint class. |
Properties
Name | Description | |
---|---|---|
EdmModel | Gets the EDM model to use for parsing the path. |
|
PathHandler | Gets the OData path handler to use for parsing. |
|
RouteName | Gets the name of the route this constraint is associated with. |
|
RoutingConventions | Gets the OData routing conventions to use for selecting the controller name. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
Match(HttpRequestMessage, IHttpRoute, String, IDictionary<String, Object>, HttpRouteDirection) | Determines whether this instance equals a specified route. |
|
MemberwiseClone() | (Inherited from Object.) |
|
SelectControllerName(ODataPath, HttpRequestMessage) | Selects the name of the controller to dispatch the request to. |
|
ToString() | (Inherited from Object.) |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
See Also
System.Web.OData.Routing Namespace
Return to top