Share via


ODataVersionConstraint Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod ODataVersionConstraint()

Creates a new instance of the ODataVersionConstraint class that will have a default version range of 1.0 to 3.0.

System_CAPS_pubmethod ODataVersionConstraint(ODataVersion)

Creates a new instance of the ODataVersionConstraint class. This instance will match just a single version of the protocol.

System_CAPS_pubmethod ODataVersionConstraint(ODataVersion, ODataVersion)

Creates a new instance of the ODataVersionConstraint class. This instance will match just a single version of the protocol.

See Also

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

Return to top

ODataVersionConstraint Constructor ()

Creates a new instance of the ODataVersionConstraint class that will have a default version range of 1.0 to 3.0.

Syntax

public ODataVersionConstraint()
public:
ODataVersionConstraint()
new : unit -> ODataVersionConstraint
Public Sub New

Return to top

ODataVersionConstraint Constructor (ODataVersion)

Creates a new instance of the ODataVersionConstraint class. This instance will match just a single version of the protocol.

Syntax

public ODataVersionConstraint(
    ODataVersion version
)
public:
ODataVersionConstraint(
    ODataVersion version
)
new : 
        version:ODataVersion -> ODataVersionConstraint
Public Sub New (
    version As ODataVersion
)

Parameters

Return to top

ODataVersionConstraint Constructor (ODataVersion, ODataVersion)

Creates a new instance of the ODataVersionConstraint class. This instance will match just a single version of the protocol.

Syntax

public ODataVersionConstraint(
    ODataVersion minVersion,
    ODataVersion maxVersion
)
public:
ODataVersionConstraint(
    ODataVersion minVersion,
    ODataVersion maxVersion
)
new : 
        minVersion:ODataVersion *
        maxVersion:ODataVersion -> ODataVersionConstraint
Public Sub New (
    minVersion As ODataVersion,
    maxVersion As ODataVersion
)

Parameters

Return to top