Share via


TeamFoundationVersionControlService.QueryMergeCandidates 方法 (TeamFoundationRequestContext, String, String, ItemSpec, ItemSpec, MergeOptionsEx)

返回必须从源合并面向的变更集。

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

语法

声明
Public Function QueryMergeCandidates ( _
    requestContext As TeamFoundationRequestContext, _
    workspaceName As String, _
    workspaceOwner As String, _
    source As ItemSpec, _
    target As ItemSpec, _
    options As MergeOptionsEx _
) As List(Of MergeCandidate)
public List<MergeCandidate> QueryMergeCandidates(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    ItemSpec source,
    ItemSpec target,
    MergeOptionsEx options
)

参数

  • workspaceName
    类型:System.String
    用于限定本地路径的工作区域的名称。
  • workspaceOwner
    类型:System.String
    工作区域所有者用于限定本地路径。

返回值

类型:System.Collections.Generic.List<MergeCandidate>
某些 MergeCandidate 对象。

备注

如果源页和目标无关,引发 NoMergeRelationshipException。

.NET Framework 安全性

请参阅

参考

TeamFoundationVersionControlService 类

QueryMergeCandidates 重载

Microsoft.TeamFoundation.VersionControl.Server 命名空间