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.StringA 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.