Inserts the specified element at the specified position in this list.
Namespace: Endeca.NavigationAssembly: Endeca.Navigation (in Endeca.Navigation.dll) Version: 6.3.0.0 (6.3.0.853)
Syntax
C# |
---|
public virtual void Add( int index, Object elementAt ) |
Visual Basic |
---|
Public Overridable Sub Add ( _ index As Integer, _ elementAt As Object _ ) |
Visual C++ |
---|
public: virtual void Add( int index, Object^ elementAt ) |
Parameters
- index
- Type: System..::..Int32
The zero-based index of the element to add.
- elementAt
- Type: System..::..Object
The element to be inserted.
Remarks
Shifts the element currently at that position (if any) and any subsequent
elements to the right (adds one to their indices).
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentOutOfRangeException | index is out of range. |