Share via


WorkItemStore.QueryCount Method (String)

Gets the number of items that would be returned if the query was executed.

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

Syntax

'Declaration
Public Function QueryCount ( _
    wiql As String _
) As Integer
public int QueryCount(
    string wiql
)
public:
int QueryCount(
    String^ wiql
)
member QueryCount : 
        wiql:string -> int
public function QueryCount(
    wiql : String
) : int

Parameters

Return Value

Type: System.Int32
The number of items that are returned by the query.

Exceptions

Exception Condition
ArgumentNullException

The wiql is null.

.NET Framework Security

See Also

Reference

WorkItemStore Class

QueryCount Overload

Microsoft.TeamFoundation.WorkItemTracking.Client Namespace