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.

C#
public class ODataRoute : System.Web.Http.Routing.HttpRoute
C#
public class ODataRoute : Microsoft.AspNetCore.Routing.Route
Inheritance
System.Web.Http.Routing.HttpRoute
ODataRoute
Inheritance
ODataRoute

Constructors

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

Product Versions
OData Web API ASP .NET 7.0, Core 7.0