ArcObjects Library Reference  (Geoprocessing)    

IGPServerSync.Execute Method

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

[Visual Basic 6.0]
Function Execute(
    ByVal ToolName As String, _
    ByVal pValues As IGPValues, _
    ByVal pOptions As IGPResultOptions, _
    ByVal pEnvValues As IPropertySet _
) As IGPResult
[Visual Basic .NET]
Public Function Execute ( _
    ByVal ToolName As String, _
    ByVal pValues As IGPValues, _
    ByVal pOptions As IGPResultOptions, _
    ByVal pEnvValues As IPropertySet _
) As IGPResult
[C#]
public IGPResult Execute (
    string ToolName,
    IGPValues pValues,
    IGPResultOptions pOptions,
    IPropertySet pEnvValues
);
[Java]
public IGPResult execute (
    String ToolName,
    IGPValues pValues,
    IGPResultOptions pOptions,
    IPropertySet pEnvValues
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Execute(
  BSTR ToolName,
  IGPValues* pValues,
  IGPResultOptions* pOptions,
  IPropertySet* pEnvValues,
  IGPResult** ppResult
);
[C++]

Parameters

ToolName [in]

  ToolName is a parameter of type BSTR

pValues [in]

  pValues is a parameter of type IGPValues

pOptions

  pOptions is a parameter of type IGPResultOptions

pEnvValues

  pEnvValues is a parameter of type IPropertySet

ppResult [out, retval]

  ppResult is a parameter of type IGPResult

Product Availability

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

See Also

IGPServerSync Interface