This documentation is archived and is not being maintained.

Query Constructor (WorkItemStore, String, array<Int32>, array<Int32>)

Initializes a new instance of the Query class.

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

public:
Query(
	WorkItemStore^ store, 
	String^ wiql, 
	array<int>^ ids, 
	array<int>^ revs
)

Parameters

store
Type: Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemStore

The WorkItemStore to query.

wiql
Type: System::String

The query string to execute.

ids
Type: array<System::Int32>

An array of WorkItem IDs.

revs
Type: array<System::Int32>

An array of WorkItem revisions.

ExceptionCondition
ArgumentNullException

At least one parameter is null.

ArgumentException

The ids and revs parameters do not have equal lengths.

DuplicateBatchReadParameterException

At least one work item ID occurs more than one time in the ids parameter.

Show: