Delen via


VersionedApiResourceConstraint Constructor

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.Version

    Default API version to use if no version was specified in the request

  • latestApiVersion
    Type: System.Version

    The latest API version supported by this resource

.NET Framework Security

See Also

Reference

VersionedApiResourceConstraint Class

Microsoft.TeamFoundation.Framework.Server Namespace