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


IGPToolCommandHelper.SetToolByName Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Geoprocessing)  

IGPToolCommandHelper.SetToolByName Method

Associates the command object with a particular tool to be executed when the command is invoked.

[Visual Basic .NET]
Public Sub SetToolByName ( _
    ByVal Toolbox As String, _
    ByVal Tool As String _
)
[C#]
public void SetToolByName (
    string Toolbox,
    string Tool
);
[C++]
HRESULT SetToolByName(
  BSTR Toolbox,
  BSTR Tool
);
[C++]

Parameters Toolbox [in]
Toolbox is a parameter of type BSTR Tool [in]
Tool is a parameter of type BSTR

Product Availability

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

See Also

IGPToolCommandHelper Interface

.NET Related Topics

Opening a geoprocessing tool's dialog box in .NET