ODataVersionConstraint Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An implementation of System.Web.Http.Routing.IHttpRouteConstraint that only matches a specific OData protocol version. This constraint won't match incoming requests that contain any of the previous OData version headers (for OData versions 1.0 to 3.0) regardless of the version in the current version headers.
public class ODataVersionConstraint : System.Web.Http.Routing.IHttpRouteConstraint
public class ODataVersionConstraint : Microsoft.AspNetCore.Routing.IRouteConstraint
type ODataVersionConstraint = class
interface IHttpRouteConstraint
type ODataVersionConstraint = class
interface IRouteConstraint
Public Class ODataVersionConstraint
Implements IHttpRouteConstraint
Public Class ODataVersionConstraint
Implements IRouteConstraint
- Inheritance
-
ODataVersionConstraint
- Implements
-
System.Web.Http.Routing.IHttpRouteConstraint IRouteConstraint
Constructors
ODataVersionConstraint() |
Creates a new instance of the ODataVersionConstraint class that will have a default version of 4.0. |
Properties
IsRelaxedMatch |
If set to true, allow passing in both OData V4 and previous version headers. |
Version |
The (minimum) version of the OData protocol that an OData-Version or OData-MaxVersion request header must have in order to be processed by the OData service with this route constraint. |
Methods
Match(HttpContext, IRouter, String, RouteValueDictionary, RouteDirection) | Determines whether the URL parameter contains a valid value for this constraint. |
Match(HttpRequestMessage, IHttpRoute, String, IDictionary<String,Object>, HttpRouteDirection) | System.Web.Http.Routing.IHttpRouteConstraint.Match(System.Net.Http.HttpRequestMessage,System.Web.Http.Routing.IHttpRoute,System.String,System.Collections.Generic.IDictionary{System.String,System.Object},System.Web.Http.Routing.HttpRouteDirection) |