Export (0) Print
Expand All

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

Visual Studio 2012

Parse a versioned file spec of the form filename;version or filename;version;deletionID.

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

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

Parameters

spec
Type: System.String

the versioned file spec to parse

user
Type: System.String

the current user's unique name (only used by workspace version specs)

userDisplay
Type: System.String

the current user's display name (only used by workspace version specs)

deletionId
Type: System.Int32

returned deletion id (orphan id)

fileName
Type: System.String

returned file name

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

returned versionSpec array

Show:
© 2015 Microsoft