This documentation is archived and is not being maintained.

VersionSpec.ParseSingleSpec Method

Converts a version string without a range specifier to a [VersionSpec] object.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public static VersionSpec ParseSingleSpec(
	string versionSpec,
	string user
)

Parameters

versionSpec
Type: System.String

Version specification to encapsulate.

user
Type: System.String

The current user (only used by workspace version specs).

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
Returns converted version specification.

Show: