This documentation is archived and is not being maintained.
VersionControlServer.CreateBranch Method (String, String, VersionSpec)
Visual Studio 2013
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)
'Declaration Public Function CreateBranch ( _ sourcePath As String, _ targetPath As String, _ version As VersionSpec _ ) As Integer
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
Show: