Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace:   System.Web.Http.OData.Routing
Assembly:  System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
| Name | Description | |
|---|---|---|
| .jpeg) | ODataVersionConstraint() | Creates a new instance of the ODataVersionConstraint class that will have a default version range of 1.0 to 3.0. | 
| .jpeg) | ODataVersionConstraint(ODataVersion) | Creates a new instance of the ODataVersionConstraint class. This instance will match just a single version of the protocol. | 
| .jpeg) | 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
- version 
 Type: Microsoft.Data.OData.ODataVersion- The version of the protocol that this instance matches. 
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
- minVersion 
 Type: Microsoft.Data.OData.ODataVersion- The minimum version of the protocol that this instance matches. 
- maxVersion 
 Type: Microsoft.Data.OData.ODataVersion- The maximum version of the protocol that this instance matches. 
Return to top