Inserts an element into the
System.Collections.ObjectModel.Collection`1 at the specified index.
Syntax
| Visual Basic (Declaration) | |
|---|
Public Sub Insert( _
ByVal index As System.Integer, _
ByVal item As UiAction _
) |
Parameters
- index
- The zero-based index at which item should be inserted.
- item
- The object to insert. The value can be null for reference types.
Exceptions
| Exception | Description |
| System.ArgumentOutOfRangeException | index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection`1.Count. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also