Workspace.GetPendingChanges Method (ItemSpec[], Boolean, Int32, String, Boolean)

Gets the pending changes for the items and sub-items in this workspace.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public PendingChange[] GetPendingChanges(
	ItemSpec[] itemSpecs,
	bool includeDownloadInfo,
	int pageSize,
	string lastChange,
	bool includeMergeSourceInfo


Type: Microsoft.TeamFoundation.VersionControl.Client.ItemSpec[]

The specifiers for each item, which may be on the server or a local computer.

Type: System.Boolean

True to include the information that is required to download files; false not to include it.

Type: System.Int32

The maximum number of pending changes to return in this page.

Type: System.String

The server path of the last pending change in the previous page.

Type: System.Boolean

True to include source information about rename and merge operations.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.PendingChange[]
The pending changes for the specified items in this workspace.

Set includeDownloadInfo to true only if you will download the files by using the information that is returned. The call will be faster and require less bandwidth when this parameter is false (default for overloads that do not specify it).

For the first page, lastChange should be null. For subsequent pages, the server path of the last pending change in the page should be used.