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


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

IGPToolbox2.CreateTool Method

Creates a new tool in the toolbox.

[Visual Basic .NET]
Public Function CreateTool ( _
    ByVal Type As esriGPToolType, _
    ByVal Name As String, _
    ByVal DisplayName As String, _
    ByVal Description As String, _
    ByVal ToolCategory As String, _
    ByVal ToolExtension As IGPToolExtension _
) As IGPTool
[C#]
public IGPTool CreateTool (
    esriGPToolType Type,
    string Name,
    string DisplayName,
    string Description,
    string ToolCategory,
    IGPToolExtension ToolExtension
);
[C++]
HRESULT CreateTool(
  esriGPToolType Type,
  BSTR Name,
  BSTR DisplayName,
  BSTR Description,
  BSTR ToolCategory,
  IGPToolExtension* ToolExtension
);
[C++]
Parameters
Type [in]

Type is a parameter of type esriGPToolType Name [in]
Name is a parameter of type BSTR DisplayName [in]
DisplayName is a parameter of type BSTR Description [in]
Description is a parameter of type BSTR ToolCategory [in]
ToolCategory is a parameter of type BSTR ToolExtension [in]
ToolExtension is a parameter of type IGPToolExtension*

Product Availability

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

See Also

IGPToolbox2 Interface