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

定義

這些項目無法插入至唯讀的集合中。

C#
void IList.Insert (int index, object value);

參數

index
Int32

要在該處插入 value 之以零起始的索引。

value
Object

要插入集合的物件。

實作

例外狀況

這些項目無法插入至唯讀的集合中。

備註

如果呼叫,則會擲回 NotSupportedException

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1