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


IHookActions.ActionSupported Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IH > IHookActions Interface > IHookActions.ActionSupported Property
ArcGIS Developer Help

IHookActions.ActionSupported Property

Indicates whether the specified action can be performed on the object.

[Visual Basic .NET]
Public Function get_ActionSupported ( _
    ByVal pUnknown As Object, _
    ByVal Action As esriHookActions _
) As Boolean
[C#]
public bool get_ActionSupported (
    object pUnknown,
    esriHookActions Action
);
[C++]
HRESULT get_ActionSupported(
  LPUNKNOWN pUnknown,
  esriHookActions Action,
  Boolean* pIsEnable
);
[C++]
Parameters
pUnknown [in]

pUnknown is a parameter of type IUnknown Action [in]
Action is a parameter of type esriHookActions pIsEnable [out, retval]
pIsEnable is a parameter of type bool*

Product Availability

Available with ArcGIS Engine.

Description

Indicates whether the specified Action is supported on the specified object. Use ActionSupported before using the DoAction and DoActionWithName methods.

pUnknown must be an object implementing IEnvelope, IPoint, IPolygon or IPolyline and the geometry should not be empty.

[C#]

In C# use the get_ActionSupported method, as indexed property accessors are not supported.

See Also

IHookActions Interface