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
wiql
Type: System.StringThe query to execute.
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
- 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.