Share via


TeamFoundationVersionControlService.CreateBranch Method

Creates a new committed branch.

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

Syntax

'Declaration
Public Function CreateBranch ( _
    requestContext As TeamFoundationRequestContext, _
    sourcePath As String, _
    targetPath As String, _
    version As VersionSpec, _
    info As Changeset, _
    checkinNotificationInfo As CheckinNotificationInfo, _
    mappings As List(Of Mapping) _
) As TeamFoundationDataReader
public TeamFoundationDataReader CreateBranch(
    TeamFoundationRequestContext requestContext,
    string sourcePath,
    string targetPath,
    VersionSpec version,
    Changeset info,
    CheckinNotificationInfo checkinNotificationInfo,
    List<Mapping> mappings
)
public:
TeamFoundationDataReader^ CreateBranch(
    TeamFoundationRequestContext^ requestContext, 
    String^ sourcePath, 
    String^ targetPath, 
    VersionSpec^ version, 
    Changeset^ info, 
    CheckinNotificationInfo^ checkinNotificationInfo, 
    List<Mapping^>^ mappings
)
member CreateBranch : 
        requestContext:TeamFoundationRequestContext * 
        sourcePath:string * 
        targetPath:string * 
        version:VersionSpec * 
        info:Changeset * 
        checkinNotificationInfo:CheckinNotificationInfo * 
        mappings:List<Mapping> -> TeamFoundationDataReader
public function CreateBranch(
    requestContext : TeamFoundationRequestContext, 
    sourcePath : String, 
    targetPath : String, 
    version : VersionSpec, 
    info : Changeset, 
    checkinNotificationInfo : CheckinNotificationInfo, 
    mappings : List<Mapping>
) : TeamFoundationDataReader

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.

Return Value

Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader
TeamFoundationDataReader with results in the following order: CheckinResult - This returns a checkin result with the changeset created.

.NET Framework Security

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace