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

IHookActions.DoActionWithNameOnMultiple Method (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.DoActionWithNameOnMultiple Method
ArcGIS Developer Help

IHookActions.DoActionWithNameOnMultiple Method

Perform the action on the array of objects using the array of names.

[Visual Basic .NET]
Public Sub DoActionWithNameOnMultiple ( _
    ByVal pArray As IArray, _
    ByVal pNamesArray As IStringArray, _
    ByVal Action As esriHookActions _
public void DoActionWithNameOnMultiple (
    IArray pArray,
    IStringArray pNamesArray,
    esriHookActions Action
HRESULT DoActionWithNameOnMultiple(
  IArray* pArray,
  IStringArray* pNamesArray,
  esriHookActions Action
pArray [in]

pArray is a parameter of type IArray* pNamesArray [in]
pNamesArray is a parameter of type IStringArray* Action [in]
Action is a parameter of type esriHookActions

Product Availability

Available with ArcGIS Engine.


DoActionWithNameOnMultiple performs the specified Action on the objects in the specified array in the ActiveView. For example, pass esriHookActionsLabel to label the specified objects with the specfied labels. Use the ActionSupportedOnMultiple method before DoActionWithNameOnMultiple is ensure the specified Action is supported.

pArray must contain objects implementing IEnvelope, IPoint, IPolygon or IPolyline and the geometry of each object should not be empty.

pNamesArray is an array of strings used by esriHookActionsLabel and esriHookActionsCallout actions.

Ensure pArray and pNamesArray contain the same number of elements.

See Also

IHookActions Interface