ArcGIS API for WPF - Library Reference
ExecuteAsync(Query,Object) Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client.Tasks Namespace > QueryTask Class > ExecuteAsync Method : ExecuteAsync(Query,Object) 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. The result is returned as a FeatureSet. If the query is successful, the QueryTask.ExecuteCompleted event is raised with the result. A FeatureSet contains an array of Graphic features, which can be added to the map using Map.graphics.add(). This array will not be populated if no results are found.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub ExecuteAsync( _
   ByVal query As Query, _
   ByVal userToken As Object _
) 
C# 
public void ExecuteAsync( 
   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

See Also

© ESRI, Inc. All Rights Reserved.