We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.

WorkItemStore.Query Method (String)

Executes a query with the provided WIQL string and returns a collection of WorkItem objects.

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

public WorkItemCollection Query(
	string wiql


Type: System.String

A query represented as a Work Item Query Language (WIQL) string.

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemCollection
Returns a WorkItemCollection of WorkItem objects that are the result of the query.