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 a null reference (Nothing in Visual Basic) for reference types.
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | index is less than zero. -or- index is greater than Count. |