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

query
Specifies the attributes and spatial filter of the query.
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 _
) As Task(Of QueryCountResult)
C# 
public Task<QueryCountResult> ExecuteCountTaskAsync( 
   Query query
)

Parameters

query
Specifies the attributes and spatial filter of the query.

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.