Parameters
- index
- The zero-based index of the element to replace.
- item
- The new value for the element at the specified index. The value can be null for reference types.
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | Thrown when index is less than zero.-or-index is greater than System.Collections.ObjectModel.Collection.Count. |