Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Workspace.PendBranch Method (String, String, VersionSpec)

Schedules a file or folder for branching.

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

public int PendBranch(
	string sourcePath,
	string targetPath,
	VersionSpec version
)

Parameters

sourcePath
Type: System.String

The path of the item to branch.

targetPath
Type: System.String

The location of the branch that will be created.

version
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionSpec

The version of the source item to branch.

Return Value

Type: System.Int32
The number of pending changes.

Branching a folder is implicitly recursive.

Show:
© 2015 Microsoft