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


IArray Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

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

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.

CoClasses that implement IArray

CoClasses and 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.

.NET Snippets

Remove Bookmark3D from SceneBookmarks | Navigate Scene to Bookmark3D | Create Group Layer Animation