| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As MailboxCollection Dim index As Integer instance.RemoveAt(index) | |
Parameters
- index
- The zero-based index of the element to remove.
| Exception | Description |
|---|---|
| System.ArgumentOutOfRangeException | index is less than zero. -or-index is equal to or greater than Count. |
When an item is removed, the elements that follow the removed element move up to occupy the vacated spot.
Target Platforms: Microsoft .NET Framework 2.0