Query.EndCountOnlyQuery Method
Finalizes a cancelable asynchronous query that will return only the count of results.
Namespace: Microsoft.TeamFoundation.WorkItemTracking.Client
Assembly: Microsoft.TeamFoundation.WorkItemTracking.Client (in Microsoft.TeamFoundation.WorkItemTracking.Client.dll)
Syntax
'Declaration
Public Function EndCountOnlyQuery ( _
car As ICancelableAsyncResult _
) As Integer
public int EndCountOnlyQuery(
ICancelableAsyncResult car
)
public:
int EndCountOnlyQuery(
ICancelableAsyncResult^ car
)
member EndCountOnlyQuery :
car:ICancelableAsyncResult -> int
public function EndCountOnlyQuery(
car : ICancelableAsyncResult
) : int
Parameters
car
Type: Microsoft.TeamFoundation.Client.ICancelableAsyncResultThe ICancelableAsyncResult object that is returned by BeginCountOnlyQuery.
Return Value
Type: System.Int32
The number of WorkItems that are returned by the query.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The car parameter is null. |
UnexpectedErrorException | The ICancelableAsyncResult object that is passed in the car parameter was not created by using BeginCountOnlyQuery. Use the correct query end method. |
.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.