Delen via


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)

Syntax

'Declaration
Public Function RunQuery As WorkItemCollection
public WorkItemCollection RunQuery()
public:
WorkItemCollection^ RunQuery()
member RunQuery : unit -> WorkItemCollection
public function RunQuery() : WorkItemCollection

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

Query Class

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace