Array.IList.RemoveAt(Int32) Array.IList.RemoveAt(Int32) Array.IList.RemoveAt(Int32) Method

定義

移除在指定索引處的 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);
Sub RemoveAt (index As Integer) Implements IList.RemoveAt

參數

index
Int32 Int32 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.

適用於