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


IArray.Insert Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

IArray.Insert Method

Adds an object to the array at the specified index.

[Visual Basic .NET]
Public Sub Insert ( _
    ByVal index As Integer, _
    ByVal unk As Object _
)
[C#]
public void Insert (
    int index,
    object unk
);
[C++]
HRESULT Insert(
  long index,
  LPUNKNOWN unk
);
[C++]

Parameters index [in] index is a parameter of type long unk [in] unk is a parameter of type LPUNKNOWN

Product Availability

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

Description

Adds the element to the array at the specified index. The element at the beginning or the array has an index of 0, and the element at the end of the array has in index of Count - 1.

See Also

IArray Interface