This documentation is archived and is not being maintained.

VersionControlServer.QueryPendingSets Method (ItemSpec[], String, String)

When a user adds, deletes, edits, branches or merges a file, these changes are made in their workspace only. The changes are pending until the user checks them into Team Foundation Server. This function gets all the pending changes for the passed items, optionally filtered by workspace, but download information is not included. Without download information the function call is faster, but if you want to download files, you should use the overload method that will allow you to get download information with the returned items.

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

public PendingSet[] QueryPendingSets(
	ItemSpec[] itemSpecs,
	string queryWorkspaceName,
	string queryUserName


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

QueryWorkspaceName and queryUserName can be used to filter the results. If both are set to null, all pending sets for the specified items will be returned. If you set a queryWorkspaceName, you must also set a queryUserName.

In this case, the function will return only pending sets for that particular workspace or user.

Type: System.String

The username is associated with the queryWorkspaceName. If queryUserName is null, and queryWorkspaceName is not null, an exception occurs: in other words, you should pass null for both parameters, or neither.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.PendingSet[]
An array of PendingSet objects that contant the pending changes for the server items.