共用方式為


TeamFoundationVersionControlService.QueryPendingChangesById 方法

根據暫止的變更 ID. 擷取暫止變更的清單, 如果暫止的變更無法為特定的暫止變更 ID 中找到,則會在暫止的變更輸出陣列的對應項目將會是空的。

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

語法

'宣告
Public Function QueryPendingChangesById ( _
    requestContext As TeamFoundationRequestContext, _
    pendingChangeIds As Integer(), _
    generateDownloadUrls As Boolean _
) As PendingChange()
public PendingChange[] QueryPendingChangesById(
    TeamFoundationRequestContext requestContext,
    int[] pendingChangeIds,
    bool generateDownloadUrls
)

參數

  • pendingChangeIds
    型別:array<System.Int32[]
    暫止的變更識別項。
  • generateDownloadUrls
    型別:System.Boolean
    如果為 true,伺服器將會包含需要下載檔案的相關資訊。請設定這個屬性設定為 True,如果您下載使用物件傳回的檔案。這個呼叫將會更快速且需要較少頻寬,當參數是錯誤的 (未指定值) 的多載的預設值。

傳回值

型別:array<Microsoft.TeamFoundation.VersionControl.Server.PendingChange[]
陣列 PendingChanges。

.NET Framework 安全性

請參閱

參考

TeamFoundationVersionControlService 類別

Microsoft.TeamFoundation.VersionControl.Server 命名空間