This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IH > IHookActions Interface > IHookActions.ActionSupported Property (ArcObjects .NET 10.5 SDK) |
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
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.
In C# use the get_ActionSupported method, as indexed property accessors are not supported.