Repository4.QueryPendingSets 方法

返回挂起的更改符合指定的条件的列表。

如果工作区名称不是空的还必须指定 ownerName。

根据递归选项将返回子级。 如果指定了 RecursionType.None,则返回仅 serverItem。 如果指定了 RecursionType.OneLevel 和 serverItem 表示一个文件夹,则返回该文件夹及其直接子项。 如果指定了 RecursionType.Full,serverItem 是一个文件夹,将返回所有后代。

此函数返回 PendingSet 对象数组,其中每个代表一个工作区。 在每个 PendingSet 对象是表示属于该工作区的更改的 PendingChanges 的数组。

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

语法

声明
<WebMethodAttribute> _
Public Function QueryPendingSets ( _
    localWorkspaceName As String, _
    localWorkspaceOwner As String, _
    queryWorkspaceName As String, _
    ownerName As String, _
    itemSpecs As ItemSpec(), _
    generateDownloadUrls As Boolean, _
    itemPropertyFilters As String(), _
    <OutAttribute> ByRef failures As StreamingCollection(Of Failure) _
) As StreamingCollection(Of PendingSet)
[WebMethodAttribute]
public StreamingCollection<PendingSet> QueryPendingSets(
    string localWorkspaceName,
    string localWorkspaceOwner,
    string queryWorkspaceName,
    string ownerName,
    ItemSpec[] itemSpecs,
    bool generateDownloadUrls,
    string[] itemPropertyFilters,
    out StreamingCollection<Failure> failures
)

参数

  • localWorkspaceName
    类型:System.String
    要查找更改从工作区的名称。如果为 null,则选择所有工作区。
  • localWorkspaceOwner
    类型:System.String
    若要查找的更改 (my workspaces) 的所有者。如果为 null,则返回所有用户。
  • itemPropertyFilters
    类型:array<System.String[]
    若要返回的属性名称的筛选器。

返回值

类型:Microsoft.TeamFoundation.Framework.Server.StreamingCollection<PendingSet>
包含 PendingChanges 的 PendingSet 对象的数组

.NET Framework 安全性

请参见

参考

Repository4 类

Microsoft.TeamFoundation.VersionControl.Server 命名空间