This documentation is archived and is not being maintained.

Query::RunQuery Method

Executes a query that gets a WorkItemCollection that contains WorkItem objects that satisfy the query.

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

public:
WorkItemCollection^ RunQuery()

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client::WorkItemCollection
A WorkItemCollection that contains WorkItem objects that satisfy the query.

A query must first be initialized by using the Query::BeginQuery() method.

For more information about using this method, see Query for Bugs, Tasks, and Other Work Items.

Show: