IListContract<C>.RemoveAt(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the element at the specified index.
public:
void RemoveAt(int index);
public void RemoveAt (int index);
abstract member RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)
Parameters
- index
- Int32
The index of the element to remove.
Exceptions
The IListContract<C> is read-only.
Remarks
After you call RemoveAt, the elements that follow the removed element move to occupy the vacated spot. The indexes of the elements that are moved are also updated.
To determine whether an IListContract<C> is read-only, call the GetIsReadOnly method.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.