ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
SubmitJob Method
See Also 
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.
Submits a geoprocessing task to the server. Designed for use with asynchronous geoprocessing.

Syntax

Visual Basic (Declaration) 
Public Function SubmitJob( _
   ByVal TaskName As String, _
   ByVal values() As GPValue _
) As String
Visual Basic (Usage)Copy Code
Dim instance As GeoprocessingFunctionality
Dim TaskName As String
Dim values() As GPValue
Dim value As String
 
value = instance.SubmitJob(TaskName, values)
C# 
public string SubmitJob( 
   string TaskName,
   GPValue[] 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.

Remarks

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).

See Also

© 2010 All Rights Reserved.