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

query
Specifies the attributes and spatial filter of the query.
cancellationToken
Cancellation token for cancelling task.
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, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of QueryResult)
C# 
public Task<QueryResult> ExecuteTaskAsync( 
   Query query,
   CancellationToken cancellationToken
)

Parameters

query
Specifies the attributes and spatial filter of the query.
cancellationToken
Cancellation token for cancelling task.

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.