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


IArray.Add Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IA > IArray Interface > IArray.Add Method
ArcGIS Developer Help

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 IUnknown

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