共用方式為


Repository4.Resolve 方法

解決特定的衝突,如果要以特定的解析度。 這就稱為取得、 簽入],以及合併衝突。

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

語法

'宣告
<WebMethodAttribute> _
Public Function Resolve ( _
    workspaceName As String, _
    ownerName As String, _
    conflictId As Integer, _
    resolution As Resolution, _
    newPath As String, _
    encoding As Integer, _
    lockLevel As LockLevel, _
    newProperties As PropertyValue(), _
    <OutAttribute> ByRef undoOperations As StreamingCollection(Of GetOperation), _
    <OutAttribute> ByRef resolvedConflicts As StreamingCollection(Of Conflict), _
    itemPropertyFilters As String(), _
    itemAttributeFilters As String(), _
    <OutAttribute> ByRef changePendedFlags As Integer _
) As StreamingCollection(Of GetOperation)
[WebMethodAttribute]
public StreamingCollection<GetOperation> Resolve(
    string workspaceName,
    string ownerName,
    int conflictId,
    Resolution resolution,
    string newPath,
    int encoding,
    LockLevel lockLevel,
    PropertyValue[] newProperties,
    out StreamingCollection<GetOperation> undoOperations,
    out StreamingCollection<Conflict> resolvedConflicts,
    string[] itemPropertyFilters,
    string[] itemAttributeFilters,
    out int changePendedFlags
)

參數

  • conflictId
    型別:System.Int32
    如果要解決的識別碼衝突。
  • newPath
    型別:System.String
    發生衝突的項目的新名稱。
  • itemPropertyFilters
    型別:array<System.String[]
    傳回使用 get ops 屬性名稱的清單。
  • itemAttributeFilters
    型別:array<System.String[]
    傳回使用 get ops 屬性名稱的清單。

傳回值

型別:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<GetOperation>
GetOperations 必須處理一組。

.NET Framework 安全性

請參閱

參考

Repository4 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間