This documentation is archived and is not being maintained.

Workspace::PendBranch Method (String, String, VersionSpec, LockLevel, Boolean, Boolean, Boolean)

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, 
	LockLevel lockLevel, 
	bool updateDisk, 
	bool detectFolderAtTarget, 
	bool silent
)

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.

lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client::LockLevel

The lock level to apply to each branched item.

updateDisk
Type: System::Boolean

True to populate the branch on the local disk. Otherwise, the disk is not modified.

detectFolderAtTarget
Type: System::Boolean

True to look for a local folder that exists at the target and then notify the server. False not to search.

silent
Type: System::Boolean

Specifies whether the server should return Get operations.

Return Value

Type: System::Int32
The number of pending changes.

Branching a folder is implicitly recursive.

Show: