Insert Method (CommandList)
Inserts an element into the System.Collections.ArrayList at the specified index.
Syntax
Parameters
- index
- The zero-based index at which value should be inserted.
- value
- The System.Object to insert. The value can be a null reference (Nothing in Visual Basic).
Exceptions
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | index is less than zero.-or- index is greater than System.Collections.ArrayList.Count. |
System.NotSupportedException | The System.Collections.ArrayList is read-only.-or- The System.Collections.ArrayList has a fixed size. |
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