[This is preliminary documentation and is subject to change.]
Inserts an object into the list at a particular
position.
| C# |
public void Insert( int index, T obj )
If the IndexedList is ordered, then the Order property of the inserted object is set
to the insertion index. The Order property of all objects in the list
following the insertion index is adjusted accordingly.
| Exception | Condition |
|---|---|
| InvalidOperationException | Thrown if you insert an object
which is invalid (Persistent.IsInvalid returns
true). |