This document is archived and information here might be outdated. Recommended version. |
Adds an object to the array.
[Visual Basic .NET] Public Sub Add ( _ ByVal unk As Object _ )
[C#] public void Add ( object unk );
[C++]
HRESULT Add(
LPUNKNOWN unk
);
[C++]
Parameters unk [in]
unk is a parameter of type IUnknown
Adds the element to the end of the array.
When adding an object to an Array, you are merely adding a new reference to the object not copying it. The reference is released when the Array is destroyed or the object is removed.