Chili.Opf3 Send comments on this topic.
Insert Method
See Also 
Chili.Opf3 Namespace > Generic ObjectSet Class : Insert Method




index
The zero-based index at which item should be inserted.
item
The object to insert into the ObjectSet.
Inserts an item to the ObjectSet at the specified index.

Syntax

Visual Basic (Declaration) 
Public Sub Insert( _
   ByVal index As Integer, _
   ByVal item As T _
) 
Visual Basic (Usage)Copy Code
Dim instance As ObjectSet(Of T)
Dim index As Integer
Dim item As T
 
instance.Insert(index, item)
C# 
public void Insert( 
   int index,
   T item
)
Managed Extensions for C++ 
public: void Insert( 
   int index,
   T item
) 
C++/CLI 
public:
void Insert( 
   int index,
   T item
) 

Parameters

index
The zero-based index at which item should be inserted.
item
The object to insert into the ObjectSet.

Exceptions

ExceptionDescription
ArgumentOutOfRangeExceptionIndex is less than zero or index is greater then Count.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also