Array.IList.RemoveAt(Int32) 方法

定义

移除位于指定索引处的 IList 项。Removes the IList item at the specified index.

 virtual void System.Collections.IList.RemoveAt(int index) = System::Collections::IList::RemoveAt;
void IList.RemoveAt (int index);
abstract member System.Collections.IList.RemoveAt : int -> unit
override this.System.Collections.IList.RemoveAt : int -> unit
Sub RemoveAt (index As Integer) Implements IList.RemoveAt

参数

index
Int32

要移除的元素的索引。The index of the element to remove.

实现

例外

索引不是 IList中的有效索引。index is not a valid index in the IList.

IList 为只读。The IList is read-only.

- 或 --or-

IList 具有固定的大小。The IList has a fixed size.

注解

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 Array 实例被强制转换为 IList 接口时使用。It can be used only when the Array instance is cast to an IList interface.

适用于