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


IGPToolCommandHelper.SetToolByName Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPToolCommandHelper Interface > IGPToolCommandHelper.SetToolByName Method
ArcGIS Developer Help

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