ReadOnlyCollection<T>.IList.Insert(Int32, Object) ReadOnlyCollection<T>.IList.Insert(Int32, Object) ReadOnlyCollection<T>.IList.Insert(Int32, Object) Method

定義

將項目插入位於指定索引的 IListInserts an item to the IList at the specified index. 這個實作一律會擲回 NotSupportedExceptionThis implementation always throws NotSupportedException.

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert (int index, object value);
Sub Insert (index As Integer, value As Object) Implements IList.Insert

參數

index
Int32 Int32 Int32

應在 value 插入以零為起始的索引。The zero-based index at which value should be inserted.

value
Object Object Object

要插入 IListObjectThe Object to insert into the IList.

實作

例外狀況

備註

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

適用於