共用方式為


VersionControlServer.GetPendingChanges 方法 (array<Int32[], Boolean)

注意:這個應用程式開發介面現在已經過時。

從具有指定 ID 的儲存機制取得 PendingChange 物件。 同時取得資訊下載檔案。

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

語法

'宣告
<ObsoleteAttribute("Method obsolete since TFS 2010. Please use VersionControlServer.QueryPendingSets, VersionControlServer.QueryShelvedChanges or Workspace.GetPendingChanges instead.")> _
Public Function GetPendingChanges ( _
    pendingChangeIds As Integer(), _
    includeDownloadInfo As Boolean _
) As PendingChange()
[ObsoleteAttribute("Method obsolete since TFS 2010. Please use VersionControlServer.QueryPendingSets, VersionControlServer.QueryShelvedChanges or Workspace.GetPendingChanges instead.")]
public PendingChange[] GetPendingChanges(
    int[] pendingChangeIds,
    bool includeDownloadInfo
)

參數

  • includeDownloadInfo
    型別:System.Boolean
    true 表示取得資訊需要下載檔案。如果下載不是必要的,指定 false 節省頻寬。

傳回值

型別:array<Microsoft.TeamFoundation.VersionControl.Client.PendingChange[]
PendingChange 的陣列物件符合指定的 ID。

備註

如果 PendingChange 不能為特定 ID 中找到,則在輸出陣列中對應的項目將會是空的。

.NET Framework 安全性

請參閱

參考

VersionControlServer 類別

GetPendingChanges 多載

Microsoft.TeamFoundation.VersionControl.Client 命名空間