RemoveAt Method

List(Of T).RemoveAt Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Removes the element at the specified index of the List(Of T).

Namespace:  System.Collections.Generic
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Sub RemoveAt ( _
	index As Integer _
)

Parameters

index
Type: System.Int32
The zero-based index of the element to remove.

Implements

IList(Of T).RemoveAt(Int32)
IList.RemoveAt(Int32)

ExceptionCondition
ArgumentOutOfRangeException

index is less than 0.

-or-

index is equal to or greater than Count.

This method is an O(n) operation, where n is (Count - index).

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft