This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IA > IArray Interface > IArray.Add Method (ArcObjects .NET 10.5 SDK) |
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
Adds the element to the end of the array.
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.