Share via


ODataRoute.HasRelaxedODataVersionConstraint Method ()

 

Note: This API is now obsolete.

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

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

Syntax

[ObsoleteAttribute("The version constraint is relaxed by default")]
public ODataRoute HasRelaxedODataVersionConstraint()
public:
[ObsoleteAttribute("The version constraint is relaxed by default")]
ODataRoute^ HasRelaxedODataVersionConstraint()
[<ObsoleteAttribute("The version constraint is relaxed by default")>]
member HasRelaxedODataVersionConstraint : unit -> ODataRoute
<ObsoleteAttribute("The version constraint is relaxed by default")>
Public Function HasRelaxedODataVersionConstraint As ODataRoute

Return Value

Type: System.Web.Http.OData.Routing.ODataRoute

Returns itself so that multiple calls can be chained.

See Also

ODataRoute Class
System.Web.Http.OData.Routing Namespace

Return to top