Share via


ODataRoute.HasRelaxedODataVersionConstraint Method

Definition

Caution

The version constraint is relaxed by default

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.

[System.Obsolete("The version constraint is relaxed by default")]
public Microsoft.AspNet.OData.Routing.ODataRoute HasRelaxedODataVersionConstraint ();
[<System.Obsolete("The version constraint is relaxed by default")>]
member this.HasRelaxedODataVersionConstraint : unit -> Microsoft.AspNet.OData.Routing.ODataRoute
Public Function HasRelaxedODataVersionConstraint () As ODataRoute

Returns

Returns itself so that multiple calls can be chained.

Attributes

Applies to