ArcObjects Library Reference  (Geoprocessing)    

IGPServer.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 Values As IGPValues, _
    ByVal pOptions As IGPResultOptions _
) As IGPResult
[Visual Basic .NET]
Public Function Execute ( _
    ByVal ToolName As String, _
    ByVal Values As IGPValues, _
    ByVal pOptions As IGPResultOptions _
) As IGPResult
[C#]
public IGPResult Execute (
    string ToolName,
    IGPValues Values,
    IGPResultOptions pOptions
);
[Java]
public IGPResult execute (
    String ToolName,
    IGPValues Values,
    IGPResultOptions pOptions
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Execute(
  BSTR ToolName,
  IGPValues* Values,
  IGPResultOptions* pOptions,
  IGPResult** ppResult
);
[C++]

Parameters

ToolName [in]

  ToolName is a parameter of type BSTR

Values [in]

  Values is a parameter of type IGPValues

pOptions [in]

  pOptions is a parameter of type IGPResultOptions

ppResult [out, retval]

  ppResult is a parameter of type IGPResult

Product Availability

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

See Also

IGPServer Interface