Repository5.CreateBranch 方法

在服务器上创建一个做的分支。

命名空间:  Microsoft.TeamFoundation.VersionControl.Server
程序集:  Microsoft.TeamFoundation.VersionControl.Server(在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

语法

声明
<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
)

参数

  • sourcePath
    类型:System.String
    分支的源路径 (递归)。
  • maxClientPathLength
    类型:System.Int32
    最大客户端支持服务器路径长度。

返回值

类型:Microsoft.TeamFoundation.VersionControl.Server.CheckinResult

.NET Framework 安全性

请参阅

参考

Repository5 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间