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


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

IArray Interface

Provides access to members that control a simple array of objects.

Product Availability

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

Description

An Array object is used to hold an indexed collection of generic objects. The Array uses a zero-based index.

Members

Name Description
Method Add Adds an object to the array.
Read-only property Count The element count of the array.
Read-only property Element Searches for the object in the array.
Method Insert Adds an object to the array at the specified index.
Method Remove Removes an object from the array.
Method RemoveAll Removes all objects from the array.

Classes that implement IArray

Classes Description
Array Generic array of objects.
EnumGPEnvironment (esriGeoprocessing) Enumeration of multiple geoprocessing environment objects.
EnumGPName (esriGeoprocessing) Enumeration of multiple geoprocessing name objects.
TxMaps (esriTrackingAnalyst) TxMaps is a container class that holds a list or array of objects implementing IMap.

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.