![]()  | 
                    
                         This document is archived and information here might be outdated. Recommended version.  | 
                
Replaces the object at the specified index in the array.
[Visual Basic .NET]
Public Sub Replace ( _
    ByVal Element As Integer, _
    ByVal pObject As Object _
)
[C#]
public void Replace (
    int Element,
    object pObject
);
[C++]
HRESULT Replace(
  long Element,
  IDispatch* pObject
);
[C++] Parameters Element [in]
Element is a parameter of type long pObject [in]
pObject is a parameter of type IDispatch