Repository5.CreateBranch Method
Creates a committed branch on the server.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Function CreateBranch ( _
sourcePath As String, _
targetPath As String, _
version As VersionSpec, _
info As Changeset, _
checkinNotificationInfo As CheckinNotificationInfo, _
mappings As List(Of Mapping), _
maxClientPathLength As Integer, _
<OutAttribute> ByRef failures As StreamingCollection(Of Failure) _
) As CheckinResult
[WebMethodAttribute]
public CheckinResult CreateBranch(
string sourcePath,
string targetPath,
VersionSpec version,
Changeset info,
CheckinNotificationInfo checkinNotificationInfo,
List<Mapping> mappings,
int maxClientPathLength,
out StreamingCollection<Failure> failures
)
[WebMethodAttribute]
public:
CheckinResult^ CreateBranch(
String^ sourcePath,
String^ targetPath,
VersionSpec^ version,
Changeset^ info,
CheckinNotificationInfo^ checkinNotificationInfo,
List<Mapping^>^ mappings,
int maxClientPathLength,
[OutAttribute] StreamingCollection<Failure^>^% failures
)
[<WebMethodAttribute>]
member CreateBranch :
sourcePath:string *
targetPath:string *
version:VersionSpec *
info:Changeset *
checkinNotificationInfo:CheckinNotificationInfo *
mappings:List<Mapping> *
maxClientPathLength:int *
failures:StreamingCollection<Failure> byref -> CheckinResult
public function CreateBranch(
sourcePath : String,
targetPath : String,
version : VersionSpec,
info : Changeset,
checkinNotificationInfo : CheckinNotificationInfo,
mappings : List<Mapping>,
maxClientPathLength : int,
failures : StreamingCollection<Failure>
) : CheckinResult
Parameters
sourcePath
Type: System.StringSource path to branch (recursive).
targetPath
Type: System.StringTarget of the branch.
version
Type: Microsoft.TeamFoundation.VersionControl.Server.VersionSpecVersion of the source.
info
Type: Microsoft.TeamFoundation.VersionControl.Server.ChangesetAny changeset information.
checkinNotificationInfo
Type: Microsoft.TeamFoundation.VersionControl.Server.CheckinNotificationInfoCheckin notification.
mappings
Type: System.Collections.Generic.List<Mapping>List of mappings to use while branching.
maxClientPathLength
Type: System.Int32The maximum client supported server path length.
failures
Type: Microsoft.TeamFoundation.Framework.Server.StreamingCollection<Failure>%List of failures to output to the client.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Server.CheckinResult
.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.