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


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

ISceneHookHelper.Hook Property

Hook object that should be the same as the hook object passed in ICommand::OnCreate.

[Visual Basic .NET]
Public Property Hook As Object
[C#]
public object Hook {get; set;}
[C++]
HRESULT get_Hook(
  IDispatch* ppHook
);
[C++]
HRESULT putref_Hook(
  System.Object* ppHook
);
[C++]
Parameters
ppHook [in]

ppHook is a parameter of type IDispatch ppHook [out, retval]
ppHook is a parameter of type IDispatch*

Product Availability

Available with ArcGIS Engine.

Description

The hook that is passed to the ICommand::OnCreate event. The hook is a SceneControl, ToolbarControl or ArcScene.

Errors Returned

1051 800a041b: The supplied hook is not valid - a menu hook must support IToolbarControl or IToolbarBuddy

See Also

ISceneHookHelper Interface