ArcGIS Runtime SDK for WPF - Library Reference
ExecuteAsync Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > QueryTask Class : ExecuteAsync 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 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 Sub ExecuteAsync( _
   ByVal query As Query, _
   Optional 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, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.