This page describes an older version, please see latest API at http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/IdentifyTask.html.
Packagecom.esri.ags.tasks
Classpublic class IdentifyTask
InheritanceIdentifyTask Inheritance BaseTask Inheritance flash.events.EventDispatcher

Performs an identify operation on the layers of a map service resource exposed by the ArcGIS Server REST API (available in ArcGIS Server 9.3 and above).

Set the URL to the ArcGIS Server REST resource that represents a map service, for example, http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer. For more information on constructing a URL, see Using the ArcGIS Services Directory.

See also

com.esri.ags.tasks.supportClasses.IdentifyParameters
com.esri.ags.tasks.supportClasses.IdentifyResult
com.esri.ags.events.IdentifyEvent
Live Sample - Identify features.


Public Properties
 PropertyDefined By
 InheritedautoNormalize : Boolean
If true, normalizes the geometries across the central meridian.
BaseTask
 Inheritedconcurrency : String
Value that indicates how to handle multiple calls to the same task.
BaseTask
 InheriteddisableClientCaching : Boolean
If true, adds a timestamp parameter ("_ts") to the REST request to prevent the request from being loaded from the browser's cache.
BaseTask
  executeLastResult : Array
[read-only] Array of IdentifyResult object returned from last call to the execute function.
IdentifyTask
 Inheritedmethod : String
URL request method to use.
BaseTask
 InheritedproxyURL : String
The URL to proxy the request through.
BaseTask
 InheritedrequestTimeout : int
The request timeout in seconds.
BaseTask
 InheritedshowBusyCursor : Boolean
If true, a busy cursor is displayed while a service is executing.
BaseTask
 Inheritedtoken : String
Token for accessing a secure task.
BaseTask
 Inheritedurl : String
URL of the task.
BaseTask
Public Methods
 MethodDefined By
  
IdentifyTask(url:String = null)
Creates a new IdentifyTask object.
IdentifyTask
  
execute(identifyParameters:IdentifyParameters, responder:IResponder = null):AsyncToken
Sends a request to the ArcGIS REST map service resource to identify features based on the IdentifyParameters specified in the identifyParameters argument.
IdentifyTask
Protected Methods
 MethodDefined By
 Inherited
sendURLVariables(urlSuffix:String, urlVariables:URLVariables, responder:IResponder, operation:Function):AsyncToken
Sends an HTTP request.
BaseTask
Events
 Event Summary Defined By
  Dispatched when execute operation successfully completes.IdentifyTask
  Dispatched when an IdentifyTask fails.IdentifyTask
Property Detail
executeLastResultproperty
executeLastResult:Array  [read-only]

Array of IdentifyResult object returned from last call to the execute function.

This property can be used as the source for data binding.


Implementation
    public function get executeLastResult():Array

See also

Constructor Detail
IdentifyTask()Constructor
public function IdentifyTask(url:String = null)

Creates a new IdentifyTask object.

Parameters
url:String (default = null) — [optional] URL to the ArcGIS Server REST resource that represents a map service.
Method Detail
execute()method
public function execute(identifyParameters:IdentifyParameters, responder:IResponder = null):AsyncToken

Sends a request to the ArcGIS REST map service resource to identify features based on the IdentifyParameters specified in the identifyParameters argument. On completion, the identifyComplete event is fired and the optional responder is called.

Parameters

identifyParameters:IdentifyParameters — The criteria used to identify the features.
 
responder:IResponder (default = null) — The responder to call on result or fault.

Returns
AsyncToken
Event Detail
executeComplete Event
Event Object Type: com.esri.ags.events.IdentifyEvent
IdentifyEvent.type property = com.esri.ags.events.IdentifyEvent.EXECUTE_COMPLETE

Dispatched when execute operation successfully completes.

Defines the value of the type property of an executeComplete event object.
fault Event  
Event Object Type: mx.rpc.events.FaultEvent
FaultEvent.type property = mx.rpc.events.FaultEvent.FAULT

Dispatched when an IdentifyTask fails.