WorkItemStore.Query Method (array<Int32 , String, DateTime)

Gets the set of fields that is referred to in wiql for the work items that are specified by an ID number (ids) as of the date that is specified in asof.

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


Public Function Query ( _
    ids As Integer(), _
    wiql As String, _
    asof As DateTime _
) As WorkItemCollection
public WorkItemCollection Query(
    int[] ids,
    string wiql,
    DateTime asof
WorkItemCollection^ Query(
    array<int>^ ids, 
    String^ wiql, 
    DateTime asof
member Query : 
        ids:int[] * 
        wiql:string * 
        asof:DateTime -> WorkItemCollection
public function Query(
    ids : int[], 
    wiql : String, 
    asof : DateTime
) : WorkItemCollection


  • ids
    Type: array<System.Int32[]

    A collection of work item IDs.

Return Value

Type: Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemCollection
A collection of work items that result from the query.


Exception Condition

At least one parameter is null.


The ids list is empty or asof is out of the supported range.

.NET Framework Security

See Also


WorkItemStore Class

Query Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace