Share via


ODataRoute Class

Definition

A route implementation for OData routes. It supports passing in a route prefix for the route as well as a path constraint that parses the request path as OData.

public class ODataRoute : System.Web.Http.Routing.HttpRoute
public class ODataRoute : Microsoft.AspNetCore.Routing.Route
type ODataRoute = class
    inherit HttpRoute
type ODataRoute = class
    inherit Route
Public Class ODataRoute
Inherits HttpRoute
Public Class ODataRoute
Inherits Route
Inheritance
System.Web.Http.Routing.HttpRoute
ODataRoute
Inheritance
ODataRoute

Constructors

ODataRoute(IRouter, String, String, IRouteConstraint, IInlineConstraintResolver)

Initializes a new instance of the ODataRoute class.

ODataRoute(IRouter, String, String, ODataPathRouteConstraint, IInlineConstraintResolver)

Initializes a new instance of the ODataRoute class.

ODataRoute(String, IHttpRouteConstraint)

Initializes a new instance of the ODataRoute class.

ODataRoute(String, IHttpRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)

Initializes a new instance of the ODataRoute class.

ODataRoute(String, ODataPathRouteConstraint)

Initializes a new instance of the ODataRoute class.

ODataRoute(String, ODataPathRouteConstraint, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpRouteValueDictionary, HttpMessageHandler)

Initializes a new instance of the ODataRoute class.

Properties

PathRouteConstraint

Gets the ODataPathRouteConstraint on this route.

RouteConstraint

Gets the System.Web.Http.Routing.IHttpRouteConstraint on this route.

RoutePrefix

Gets the route prefix.

Methods

GetVirtualPath(HttpRequestMessage, IDictionary<String,Object>) System.Web.Http.Routing.HttpRoute.GetVirtualPath(System.Net.Http.HttpRequestMessage,System.Collections.Generic.IDictionary{System.String,System.Object})
GetVirtualPath(VirtualPathContext) System.Web.Http.Routing.HttpRoute.GetVirtualPath(Microsoft.AspNetCore.Routing.VirtualPathContext)
HasRelaxedODataVersionConstraint()
Obsolete.

Relax the version constraint. The service will allow clients to send both OData V4 and previous max version headers. Headers for the previous max version will be ignored.

Applies to