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
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
sourcePath
Type: System.StringSource path of the branch - must be a server path.
targetPath
Type: System.StringTarget path of the branch - must be a server path.
version
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecChangeset or DateTime version spec to create the branch with.
info
Type: Microsoft.TeamFoundation.VersionControl.Server.ChangesetChangeset meta-data. Used to provide owner, comment, checkin note, date, and additional information.
checkinNotificationInfo
Type: Microsoft.TeamFoundation.VersionControl.Server.CheckinNotificationInfoThe 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.