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

query
Specifies the attributes and spatial filter of the query.
Executes a query against an ArcGIS Server map layer. If the query is successful, the task returns a QueryResult. Otherwise, the Task.Exception is set.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ExecuteTaskAsync( _
   ByVal query As Query _
) As Task(Of QueryResult)
C# 
public Task<QueryResult> ExecuteTaskAsync( 
   Query query
)

Parameters

query
Specifies the attributes and spatial filter of the query.

Return Value

a Task object with QueryResult 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.