This documentation is archived and is not being maintained.

VersionSpec.ParseVersionedFileSpec Method (String, String, String%, VersionSpec[]%)

Parse a versioned file spec from the "filename;version" form.

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

public static void ParseVersionedFileSpec(
	string spec,
	string user,
	out string fileName,
	out VersionSpec[] versions
)

Parameters

spec
Type: System.String

The versioned file spec to parse.

user
Type: System.String

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

fileName
Type: System.String%

Returned file name.

versions
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec[]%

Returned VersionSpec array.

Show: