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


IArray.Add Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

IArray.Add Method

Adds an object to the array.

[Visual Basic .NET]
Public Sub Add ( _
    ByVal unk As Object _
)
[C#]
public void Add (
    object unk
);
[C++]
HRESULT Add(
  LPUNKNOWN unk
);
[C++]

Parameters unk [in] unk is a parameter of type LPUNKNOWN

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

Adds the element to the end of the array.

Remarks

When adding an object to an Array, you are merely adding a new reference to the object not copying it. The reference is released when the Array is destroyed or the object is removed.

See Also

IArray Interface

.NET Snippets

Create Group Layer Animation