This documentation is archived and is not being maintained.

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
public static VersionSpec[] Parse (
	String versionSpec, 
	String user
public static function Parse (
	versionSpec : String, 
	user : String
) : VersionSpec[]



Version specification to encapsulate.


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

Return Value

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.