ArcGIS API for Silverlight - Library Reference
ExecuteCountAsync Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Tasks Namespace > QueryTask Class : ExecuteCountAsync Method

query
Specifies the attributes and spatial filter of the query.
userToken
A user-defined object that is passed to the method invoked when the asynchronous operation completes.
Executes a query against an ArcGIS Server map layer and counts the results. If the query is successful, the QueryTask.ExecuteCountCompleted event is raised with the result.

Syntax

Visual Basic (Declaration) 
Public Sub ExecuteCountAsync( _
   ByVal query As Query, _
   Optional ByVal userToken As Object _
) 
C# 
public void ExecuteCountAsync( 
   Query query,
   object userToken
)

Parameters

query
Specifies the attributes and spatial filter of the query.
userToken
A user-defined object that is passed to the method invoked when the asynchronous operation completes.

Requirements

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

See Also

© ESRI, Inc. All Rights Reserved.