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


ICommandPoolEdit.SetHook Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

ICommandPoolEdit.SetHook Method

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

[Visual Basic .NET]
Public Sub SetHook ( _
    ByVal pHook As Object _
)
[C#]
public void SetHook (
    object pHook
);
[C++]
HRESULT SetHook(
  IDispatch* pHook
);
[C++]

Parameters pHook [in] pHook is a parameter of type IDispatch*

Product Availability

Available with ArcGIS Engine.

Description

Pass the SetHook method 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