This documentation is archived and is not being maintained.

WorkItemStore::QueryCount Method (String, IDictionary)

Gets the number of items that would be returned if the query was executed.

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

public:
int QueryCount(
	String^ wiql, 
	IDictionary^ context
)

Parameters

wiql
Type: System::String

The query to execute.

context
Type: System.Collections::IDictionary

The parameters for the work item query.

Return Value

Type: System::Int32
The number of items that is returned by the query.

ExceptionCondition
ArgumentNullException

The wiql is null.

Show: