ArcGIS Runtime SDK for WPF - Library Reference
ExecuteCountTaskAsync(Query,CancellationToken) Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > QueryTask Class > ExecuteCountTaskAsync Method : ExecuteCountTaskAsync(Query,CancellationToken) Method

query
Specifies the attributes and spatial filter of the query.
cancellationToken
Cancellation token for cancelling task.
Executes a query against an ArcGIS Server map layer and counts the results. If the query is successful, the task returns an integer result. Otherwise, the Task.Exception is set.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ExecuteCountTaskAsync( _
   ByVal query As Query, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of QueryCountResult)
C# 
public Task<QueryCountResult> ExecuteCountTaskAsync( 
   Query query,
   CancellationToken cancellationToken
)

Parameters

query
Specifies the attributes and spatial filter of the query.
cancellationToken
Cancellation token for cancelling task.

Return Value

a Task object with QueryCountResult upon successful completion. Otherwise, the Task.Exception is set.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.