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


IVariantArray Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IV > IVariantArray Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (System)  

IVariantArray Interface

Provides access to members that control variant arrays.

Product Availability

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

Description

The IVariantArray interface provides methods and properties for inserting, removing and accessing elements in a VarArray via a zero-based index.

Members

Name Description
Method Add Add an element.
Read-only property Count The element count.
Read/write property Element An element in the array.
Method Insert Add an element at the specified posiiton.
Method Remove Removes element at the specified position.
Method RemoveAll Removes all elements.

CoClasses that implement IVariantArray

CoClasses and Classes Description
VarArray An object for holding a Variant array.