Share via


ODataPathRouteConstraint Class

 

An implementation of IHttpRouteConstraint that only matches OData paths.

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

Inheritance Hierarchy

System.Object
  System.Web.Http.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
System_CAPS_pubmethod ODataPathRouteConstraint(IODataPathHandler, IEdmModel, String, IEnumerable<IODataRoutingConvention>)

Initializes a new instance of the ODataPathRouteConstraint class.

Properties

Name Description
System_CAPS_pubproperty EdmModel

Gets the EDM model to use for parsing the path.

System_CAPS_pubproperty PathHandler

Gets the OData path handler to use for parsing.

System_CAPS_pubproperty RouteName

Gets the name of the route this constraint is associated with.

System_CAPS_pubproperty RoutingConventions

Gets the OData routing conventions to use for selecting the controller name.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod Match(HttpRequestMessage, IHttpRoute, String, IDictionary<String, Object>, HttpRouteDirection)

Determines whether this instance equals a specified route.

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethod SelectControllerName(ODataPath, HttpRequestMessage)

Selects the name of the controller to dispatch the request to.

System_CAPS_pubmethod 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.Http.OData.Routing Namespace

Return to top