ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
Execute Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > GeoprocessingFunctionality Class : Execute Method




taskName
Name of the geoprocessing task to execute.
values
An array of values to use for executing the task.
Executes a geoprocessing task. Designed for use with synchronous geoprocessing tasks.

Syntax

Visual Basic (Declaration) 
Public Function Execute( _
   ByVal taskName As String, _
   ByVal values() As GPValue _
) As GPResult
Visual Basic (Usage)Copy Code
Dim instance As GeoprocessingFunctionality
Dim taskName As String
Dim values() As GPValue
Dim value As GPResult
 
value = instance.Execute(taskName, values)
C# 
public GPResult Execute( 
   string taskName,
   GPValue[] values
)

Parameters

taskName
Name of the geoprocessing task to execute.
values
An array of values to use for executing the task.

Return Value

The result of the geoprocessing task execution.

Remarks

If the geoprocessing task is expected to require an extended period to execute, asynchronous execution of the task should be considered, using SubmitJob. For a discussion of synchronous vs. asynchronous execution, see the topic Geoprocessing Resource in the Developer Help (also available online at the ArcGIS Resource Center).

See Also

© 2010 All Rights Reserved.