Task

AMD: require(["esri/tasks/Task"], (Task) => { /* code goes here */ });
ESM: import Task from "@arcgis/core/tasks/Task";
Class: esri/tasks/Task
Inheritance: Task Accessor
Since: ArcGIS API for JavaScript 4.0
Deprecated since version 4.20.

The base class for tasks. This class has no constructor.

See also:

Constructors

new Task(properties)
Parameter:
properties Object
optional

See the properties for a list of all the properties that may be passed into the constructor.

Property Overview

Any properties can be set, retrieved or listened to. See the Working with Properties topic.
Show inherited properties Hide inherited properties
Name Type Summary Class
Stringmore details

The name of the class.

more detailsAccessor
Objectmore details

The options to be used for data requests.

more detailsTask
Stringmore details

The ArcGIS Server REST service URL (usually of a Feature Service Layer or Map Service Layer) for use in a task.

more detailsTask

Property Details

declaredClass Stringreadonly inherited
Since: ArcGIS API for JavaScript 4.7

The name of the class. The declared class name is formatted as esri.folder.className.

requestOptions Object

The options to be used for data requests. These options can also be controlled through the requestOptions method parameter.

url String

The ArcGIS Server REST service URL (usually of a Feature Service Layer or Map Service Layer) for use in a task.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.