This document is archived and information here might be outdated.  Recommended version.


IGPServer2.Execute Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGPServer2.Execute Method

Executes the specified tool with the supplied values and options and returns the results.

[Visual Basic .NET]
Public Function Execute ( _
    ByVal ToolName As String, _
    ByVal Values As IGPValues, _
    ByVal options As IGPResultOptions, _
    ByVal envValues As IPropertySet _
) As IGPResult
[C#]
public IGPResult Execute (
    string ToolName,
    IGPValues Values,
    IGPResultOptions options,
    IPropertySet envValues
);
[C++]
HRESULT Execute(
  BSTR ToolName,
  IGPValues* Values,
  IGPResultOptions* options,
  IPropertySet* envValues
);
[C++]

Parameters ToolName [in]
ToolName is a parameter of type BSTR Values [in]
Values is a parameter of type IGPValues* options [in]
options is a parameter of type IGPResultOptions* envValues [in]
envValues is a parameter of type IPropertySet*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IGPServer2 Interface