This documentation is archived and is not being maintained.

Query::EndCountOnlyQuery Method

Finalizes a cancelable asynchronous query that will return only the count of results.

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

public:
int EndCountOnlyQuery(
	ICancelableAsyncResult^ car
)

Return Value

Type: System::Int32
The number of WorkItems that are returned by the query.

ExceptionCondition
ArgumentNullException

The car parameter is null.

UnexpectedErrorException

The ICancelableAsyncResult object that is passed in the car parameter was not created by using BeginCountOnlyQuery. Use the correct query end method.

Show: