共用方式為


Repository4.Merge 方法

傳回暫止的合併自動判斷已解決的 GetOperations 和衝突,則不會自動解析的清單。

命名空間:  Microsoft.TeamFoundation.VersionControl.Server
組件:  Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)

語法

'宣告
<WebMethodAttribute> _
Public Function Merge ( _
    workspaceName As String, _
    workspaceOwner As String, _
    source As ItemSpec, _
    target As ItemSpec, _
    from As VersionSpec, _
    to As VersionSpec, _
    lockLevel As LockLevel, _
    optionsEx As Integer, _
    itemPropertyFilters As String(), _
    itemAttributeFilters As String(), _
    <OutAttribute> ByRef failures As StreamingCollection(Of Failure), _
    <OutAttribute> ByRef conflicts As StreamingCollection(Of Conflict), _
    <OutAttribute> ByRef changePendedFlags As Integer _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> Merge(
    string workspaceName,
    string workspaceOwner,
    ItemSpec source,
    ItemSpec target,
    VersionSpec from,
    VersionSpec to,
    LockLevel lockLevel,
    int optionsEx,
    string[] itemPropertyFilters,
    string[] itemAttributeFilters,
    out StreamingCollection<Failure> failures,
    out StreamingCollection<Conflict> conflicts,
    out int changePendedFlags
)

參數

  • optionsEx
    型別:System.Int32
    使用此新的和舊的合併選項傳送給伺服器。值是 MergeOptionsEx 列舉中。
  • itemAttributeFilters
    型別:array<System.String[]
    要傳回的每個 get 作業之屬性的清單。

傳回值

型別:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
更新用戶端的 GetOperations 清單。

.NET Framework 安全性

請參閱

參考

Repository4 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間