共用方式為


Repository4.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), _
    <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,
    out StreamingCollection<Failure> failures
)

參數

  • sourcePath
    類型:System.String
    分支來源路徑 (遞迴)。

傳回值

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

.NET Framework 安全性

請參閱

參考

Repository4 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間