ODataVersionConstraint Constructor
Namespace: System.Web.Http.OData.Routing
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
ODataVersionConstraint() | Creates a new instance of the ODataVersionConstraint class that will have a default version range of 1.0 to 3.0. |
|
ODataVersionConstraint(ODataVersion) | Creates a new instance of the ODataVersionConstraint class. This instance will match just a single version of the protocol. |
|
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.ODataVersionThe 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.ODataVersionThe minimum version of the protocol that this instance matches.
maxVersion
Type: Microsoft.Data.OData.ODataVersionThe maximum version of the protocol that this instance matches.
Return to top