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


Array CoClass (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Classes > A > Array CoClass (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (System)  

Array CoClass

Generic array of objects.

Product Availability

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

Description

The Array object enables ArcObjects to pass around arrays of object references in a cross platform manner; you can store and retrieve an array of object references in the same way regardless of which ArcObjects API you are using. Unlike the similar Set object, Arrays offer random access by indexed lookup. You can also insert, remove, or replace objects at any position in the Array. The array is heterogeneous, that is the objects in it do not need to be of the same type.

Array objects are used by several interfaces including IIdentify and IMapControl2.

Supported Platforms

Windows, Solaris, Linux

Interfaces

Interfaces Description
IArray Provides access to members that control a simple array of objects.
IArray2 Provides access to replace an object in the array.
IXMLSerialize Provides access to members that XML serialize and deserialize an object to/from XML.