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


ICommandPoolEdit.Hook Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IC > ICommandPoolEdit Interface > ICommandPoolEdit.Hook Property
ArcGIS Developer Help

ICommandPoolEdit.Hook Property

The object that is passed as a hook to the OnCreate method on the command.

[Visual Basic .NET]
Public ReadOnly Property Hook As Object
[C#]
public object Hook {get;}
[C++]
HRESULT get_Hook(
  System.Object* newVal
);
[C++]
Parameters
newVal [out, retval]

newVal is a parameter of type IDispatch*

Product Availability

Available with ArcGIS Engine.

Description

The Hook is an IDispatch object, typically the ToolbarControl, that is passed as a hook to the ICommand::OnCreate method of each command in the CommandPool. 

See Also

ICommandPoolEdit Interface