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)
|
| 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
| Exception | Description |
| ArgumentOutOfRangeException | Index 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