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

findParameters
Specifies the layers and fields that are used to search against.
cancellationToken
CancellationToken is used to cancel the async task after execution.
Executes an Find against an ArcGIS Server map layer. The result is returned as a List of FeatureSet. A FeatureSet contains an array of Graphic features, which can be added to the map using GraphicsLayer.Graphics.Add.

Syntax

Visual Basic (Declaration) 
Public Overloads Function ExecuteTaskAsync( _
   ByVal findParameters As FindParameters, _
   ByVal cancellationToken As CancellationToken _
) As Task(Of FindTaskResult)

Parameters

findParameters
Specifies the layers and fields that are used to search against.
cancellationToken
CancellationToken is used to cancel the async task after execution.

Return Value

Returns a task which will return a FindTaskResult which a collection of type FindResult which contains matching results based on the search criteria indicated by findParameters.

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.