WorkItemStore.QueryCount Method (String, IDictionary)
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
'宣言
Public Function QueryCount ( _
wiql As String, _
context As IDictionary _
) As Integer
public int QueryCount(
string wiql,
IDictionary context
)
public:
int QueryCount(
String^ wiql,
IDictionary^ context
)
member QueryCount :
wiql:string *
context:IDictionary -> int
public function QueryCount(
wiql : String,
context : IDictionary
) : int
Parameters
- wiql
Type: System.String
The query to execute.
- context
Type: System.Collections.IDictionary
The parameters for the work item query.
Return Value
Type: System.Int32
The number of items that is 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.