This documentation is archived and is not being maintained.

Query::EndQuery Method

Gets the WorkItemCollection object that resulted from the query.

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

public:
WorkItemCollection^ EndQuery(
	ICancelableAsyncResult^ car
)

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemCollection
The WorkItemCollection object that resulted from 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 BeginQuery. Use the correct query end method.

Show: