Share via


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

返回变更集需要从源合并目标。

命名空间:  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, _
    maxClientPathLength As PathLength _
) As List(Of MergeCandidate)
public List<MergeCandidate> QueryMergeCandidates(
    TeamFoundationRequestContext requestContext,
    string workspaceName,
    string workspaceOwner,
    ItemSpec source,
    ItemSpec target,
    MergeOptionsEx options,
    PathLength maxClientPathLength
)

参数

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

返回值

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

备注

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

.NET Framework 安全性

请参阅

参考

TeamFoundationVersionControlService 类

QueryMergeCandidates 重载

Microsoft.TeamFoundation.VersionControl.Server 命名空间