ArcObjects Library Reference  (TrackingAnalyst)    

IActionCollection.Add Method

Adds an action to the collection.

[Visual Basic 6.0]
Sub Add(
    ByVal piAction As IAction, _
    ByVal nIndex As Empty _
)
[Visual Basic .NET]
Public Sub Add ( _
    ByVal piAction As IAction, _
    ByVal nIndex As Integer _
)
[C#]
public void Add (
    IAction piAction,
    int nIndex
);
[Java]
public void add (
    IAction piAction,
    int nIndex
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Add(
  IAction* piAction,
  Long nIndex
);
[C++]

Parameters

piAction [in]

  piAction is a parameter of type IAction

nIndex [in]

  nIndex is a parameter of type Long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Tracking Analyst Extension.

Description

This method allows a user to add an action to the Collection.  The action will be added at the specified index. Specifying a large index value, such as 999999 will ensure the action is placed at the end of the list. This method will addref the received action before placing in the collection.

See Also

IActionCollection Interface

 


Feedback Send feedback on this page