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
- requestContext 
 Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext- The request context. 
- 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.Server.VersionSpec- Changeset or DateTime version spec to create the branch with. 
- info 
 Type: Microsoft.TeamFoundation.VersionControl.Server.Changeset- Changeset meta-data. Used to provide owner, comment, checkin note, date, and additional information. 
- checkinNotificationInfo 
 Type: Microsoft.TeamFoundation.VersionControl.Server.CheckinNotificationInfo- The information needed by the checkin notification service. 
- mappings 
 Type: System.Collections.Generic.List<Mapping>- A list of mappings under the target path to include or exclude from the branch. 
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
- 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.