Partager via


ODataRoute.HasRelaxedODataVersionConstraint Method ()

 

Note: This API is now 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.

Namespace:   System.Web.OData.Routing
Assembly:  System.Web.OData (in System.Web.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.OData.Routing.ODataRoute

Returns itself so that multiple calls can be chained.

See Also

ODataRoute Class
System.Web.OData.Routing Namespace

Return to top