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


IHookActions.ActionSupported Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Controls)  

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,
  VARIANT_BOOL* pIsEnable
);
[C++]

Parameters pUnknown [in] pUnknown is a parameter of type LPUNKNOWN Action [in]
Action is a parameter of type esriHookActions pIsEnable [out, retval] pIsEnable is a parameter of type VARIANT_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