WorkItemStore.Query Method (BatchReadParameterCollection, String)

Gets the set of fields that is referred to in Wiql for the work items that are specified by the ID/revision pairs in batchReadParams.

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

public WorkItemCollection Query(
	BatchReadParameterCollection batchReadParams,
	string wiql
)

Parameters

batchReadParams
Type: Microsoft.TeamFoundation.WorkItemTracking.Client.BatchReadParameterCollection

A collection of ID/revision pairs.

wiql
Type: System.String

The definition of fields to return.

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemCollection
A collection of work items that result from the query.

ExceptionCondition
ArgumentNullException

At least one parameter is null.

ArgumentException

The batchReadParams list is empty.

Show: