Workspace.GetPendingChanges 方法 (array<ItemSpec[], Boolean, Int32, String, Boolean)
在這個工作區取得項目的暫止變更和子項目。
命名空間: Microsoft.TeamFoundation.VersionControl.Client
組件: Microsoft.TeamFoundation.VersionControl.Client (在 Microsoft.TeamFoundation.VersionControl.Client.dll 中)
語法
'宣告
Public Function GetPendingChanges ( _
itemSpecs As ItemSpec(), _
includeDownloadInfo As Boolean, _
pageSize As Integer, _
lastChange As String, _
includeMergeSourceInfo As Boolean _
) As PendingChange()
public PendingChange[] GetPendingChanges(
ItemSpec[] itemSpecs,
bool includeDownloadInfo,
int pageSize,
string lastChange,
bool includeMergeSourceInfo
)
參數
- itemSpecs
型別:array<Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[]
每個項目的規範,可能在伺服器或本機電腦。
- includeDownloadInfo
型別:System.Boolean
true 表示包含需要下載檔案的資訊;包含其 false。
- pageSize
型別:System.Int32
暫止的變更數目上限為傳回的在這個頁面。
- lastChange
型別:System.String
最後一個暫止變更的伺服器路徑在目前頁面的。
- includeMergeSourceInfo
型別:System.Boolean
true 表示包含來源資訊重新命名和合併作業。
傳回值
型別:array<Microsoft.TeamFoundation.VersionControl.Client.PendingChange[]
指定項目的暫止變更。這個工作區。
備註
請將 includeDownloadInfo 設定為 true 時,才會下載檔案使用的資訊。 呼叫會更快速且需要較少的頻寬,當這個參數為 false (沒有指定它) 的多載的預設值。
針對第一頁, lastChange 應該是空的。 針對下一頁,應該使用最後一個暫止變更的伺服器路徑在頁面上。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。