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

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.

.NET Samples

ArcGIS GPConsole (Code Files: Program) | Consuming a geoprocessing custom model in .NET (Code Files: Module1) | Create a custom raster function (Code Files: WatermarkFunction) | Create a raster catalog using the geoprocessor (Code Files: CreateRasterCatalog_GP) | Geoprocessing events listener (Code Files: GPEventListner) |

.NET Related Topics

Consuming a geoprocessing model tool in .NET | How to execute a geoprocessing tool using an add-in | How to run a geoprocessing tool | How to set options when exporting a raster dataset to a geodatabase | How to use the CreateRPFCatalog geoprocessing tool | How to work with geoprocessing services | Listing fields | Using ArcObjects as tool input | Using environment settings | Using value tables | Working with ArcSDE data | Working with result objects | Working with SQL workspaces |