Repository5.QueryMergeCandidates 方法
傳回需要從來源合併目標的一組變更集。
命名空間: Microsoft.TeamFoundation.VersionControl.Server
組件: Microsoft.TeamFoundation.VersionControl.Server (在 Microsoft.TeamFoundation.VersionControl.Server.dll 中)
語法
'宣告
<WebMethodAttribute> _
Public Function QueryMergeCandidates ( _
workspaceName As String, _
workspaceOwner As String, _
source As ItemSpec, _
target As ItemSpec, _
options As Integer, _
maxClientPathLength As Integer _
) As List(Of MergeCandidate)
[WebMethodAttribute]
public List<MergeCandidate> QueryMergeCandidates(
string workspaceName,
string workspaceOwner,
ItemSpec source,
ItemSpec target,
int options,
int maxClientPathLength
)
參數
- workspaceName
類型:System.String
用於的工作區名稱限定區域路徑。
- workspaceOwner
類型:System.String
工作區擁有人用來限定區域路徑。
- source
類型:Microsoft.TeamFoundation.VersionControl.Server.ItemSpec
要尋找的來源項目。
- target
類型:Microsoft.TeamFoundation.VersionControl.Server.ItemSpec
的目標尋找合併的。
- options
類型:System.Int32
- maxClientPathLength
類型:System.Int32
最大用戶端支援伺服器路徑長度。
傳回值
類型:System.Collections.Generic.List<MergeCandidate>
陣列 MergeCandidate 物件。
備註
如果來源和目標不是相關的,會擲回 NoMergeRelationshipException。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。