語言

Array.IList.RemoveAt(Int32) 方法

定義

移除 IList 指定索引的項目。

 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

要移除元素的索引。

實作

例外狀況

索引在 中並非有效的索引 IList。

這是 IList 唯讀的。

-或-

它 IList 有固定尺寸。

備註

此成員為明確介面成員實作。 它只能在實 Array 例投射到 IList 介面時使用。

適用於