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)

Syntax

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

returnValue = instance.Query(wiql)
public WorkItemCollection Query(
    string wiql
)
public:
WorkItemCollection^ Query(
    String^ wiql
)
public function Query(
    wiql : String
) : WorkItemCollection

Parameters

  • 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.

.NET Framework Security

See Also

Reference

WorkItemStore Class

WorkItemStore Members

Query Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace