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.
Route constraint that selects the appropriate API resource controller based on the request version
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Sub New ( _
defaultApiVersion As Version, _
latestApiVersion As Version _
)
public VersionedApiResourceConstraint(
Version defaultApiVersion,
Version latestApiVersion
)
public:
VersionedApiResourceConstraint(
Version^ defaultApiVersion,
Version^ latestApiVersion
)
new :
defaultApiVersion:Version *
latestApiVersion:Version -> VersionedApiResourceConstraint
public function VersionedApiResourceConstraint(
defaultApiVersion : Version,
latestApiVersion : Version
)
Parameters
defaultApiVersion
Type: System.VersionDefault API version to use if no version was specified in the request
latestApiVersion
Type: System.VersionThe latest API version supported by this resource
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.