This topic has not yet been rated - Rate this topic

VersionSpec.Parse Method

Converts a version string into an array of VersionSpec objects.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
public static VersionSpec[] Parse(
	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 an array of version specifications.

If the version specification does not contain a range specifier, it will return an array of size one; otherwise it will return an array of size two.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.