Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual Studio SDK
WorkItemStore Class
Query Method
 Query Method (String)

  Switch on low bandwidth view
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Reference for Team Foundation Server SDK
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)

Visual Basic (Declaration)
Public Function Query ( _
	wiql As String _
) As WorkItemCollection
Visual Basic (Usage)
Dim instance As WorkItemStore
Dim wiql As String
Dim returnValue As WorkItemCollection

returnValue = instance.Query(wiql)
C#
public WorkItemCollection Query (
	string wiql
)
C++
public:
WorkItemCollection^ Query (
	String^ wiql
)
J#
public WorkItemCollection Query (
	String wiql
)
JScript
public function Query (
	wiql : String
) : WorkItemCollection

Parameters

wiql

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

Return Value

Returns a WorkItemCollection of WorkItem objects that are the result of the query.
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Example of WIQL Query      Petro Protsyk   |   Edit   |   Show History
SELECT [System.Id], [System.WorkItemType], [System.State], [System.AssignedTo], [System.Title]
FROM WorkItems
WHERE [System.TeamProject] = "ProjectName"
ORDER BY [System.WorkItemType], [System.Id]

Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker