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


ICommandHost Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > SystemUI > ESRI.ArcGIS.SystemUI > Interfaces > IC > ICommandHost Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (SystemUI)  

ICommandHost Interface

Provides access to the ICommandHost Interface.

Product Availability

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

Description

The ICommandHost interface is used when developing with the C++ API. C++ developers are unable to create new COM objects, so the CommandHost and ToolHost objects can be used to create custom commands and tools as follows:

Members

Name Description
Method SetCommand The SetCommand method is used to bind a command instance to its host.

CoClasses that implement ICommandHost

CoClasses and Classes Description
CommandHost Use this class to host C++ command implementations in a Toolbar.
ToolHost Use this class to host pure C++ tool implementations in a Toolbar.