VersionControlServer.CreateBranch Method (String, String, VersionSpec)

Creates a branch on the server and checks it in without downloading the branch to the client.

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

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

Parameters

sourcePath
Type: System.String

Source path of the branch - must be a server path.

targetPath
Type: System.String

Target path of the branch - must be a server path.

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

Changeset or DateTime version spec with which to create the branch.

Return Value

Type: System.Int32
Changeset identifier for the check-in of the branch.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft