ReadOnlyCollection<T>.IList<T>.RemoveAt(Int32) ReadOnlyCollection<T>.IList<T>.RemoveAt(Int32) ReadOnlyCollection<T>.IList<T>.RemoveAt(Int32) Method

定義

移除在指定索引處的 IList<T> 項目。Removes the IList<T> item at the specified index. 這個實作一律會擲回 NotSupportedExceptionThis implementation always throws NotSupportedException.

 virtual void System.Collections.Generic.IList<T>.RemoveAt(int index) = System::Collections::Generic::IList<T>::RemoveAt;
void IList<T>.RemoveAt (int index);
Sub RemoveAt (index As Integer) Implements IList(Of T).RemoveAt

參數

index
Int32 Int32 Int32

要移除之項目的以零為起始的索引。The zero-based index of the item to remove.

實作

例外狀況

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 ReadOnlyCollection<T> 執行個體轉換成 IList<T> 介面時,才能使用這個成員。It can be used only when the ReadOnlyCollection<T> instance is cast to an IList<T> interface.

適用於