![]() ![]() |
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer | |
SubmitJob Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > GeoprocessingFunctionality Class : SubmitJob Method |
- TaskName
- Name of the geoprocessing task.
- values
- An array of values to use for executing the task.
Visual Basic (Declaration) | |
---|---|
Public Function SubmitJob( _ ByVal TaskName As String, _ ByVal values() As ESRI.ArcGIS.ADF.Web.DataSources.GPValue _ ) As String |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As GeoprocessingFunctionality Dim TaskName As String Dim values() As ESRI.ArcGIS.ADF.Web.DataSources.GPValue Dim value As String value = instance.SubmitJob(TaskName, values) |
Parameters
- TaskName
- Name of the geoprocessing task.
- values
- An array of values to use for executing the task.
Return Value
A job ID that may be used to check job status and retrieve the job result.SubmitJob is used with asynchronous geoprocessing jobs. Asynchronous processing is advised when the geoprocessing task is expected to require an extended period to execute. If the geoprocessing task is completed in a short time, synchronous processing may be considered, which is performed by calling Execute instead of SubmitJob.
The return value from SubmitJob is a geoprocessing job ID, a unique string identifier for the particular task run. This ID may then be used to check the status of the job with GetJobStatus. Once that method indicates the task is finished, GetJobResult is used to retrieve the task result.
For a discussion of synchronous vs. asynchronous execution, see the topic GeoprocessingResource in the Developer Help (also available online at the ArcGIS Resource Center).
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family