語言

SynchronizedReadOnlyCollection<T>.IList.Insert(Int32, Object) 方法

定義

項目無法插入只讀集合中。

 virtual void System.Collections.IList.Insert(int index, System::Object ^ value) = System::Collections::IList::Insert;
void IList.Insert(int index, object value);
abstract member System.Collections.IList.Insert : int * obj -> unit
override this.System.Collections.IList.Insert : int * obj -> unit
Sub Insert (index As Integer, value As Object) Implements IList.Insert

參數

index
Int32

要插入的以零為基礎的索引 value 。

value
Object

要插入收藏的物件。

實作

例外狀況

項目無法插入只讀集合中。

備註

如果有人叫,他會投出一個。NotSupportedException

適用於