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


IArray2.Replace Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IA > IArray2 Interface > IArray2.Replace Method
ArcGIS Developer Help

IArray2.Replace Method

Replaces an object in the array.

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

index is a parameter of type long unk [in]
unk is a parameter of type IUnknown

Product Availability

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

Description

Replaces the element at the specified index in the array with the specified element. 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

IArray2 Interface