ImmutableList<T>.IList<T>.Insert(Int32, T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定索引處的不可變清單中插入物件。
virtual void System.Collections.Generic.IList<T>.Insert(int index, T item) = System::Collections::Generic::IList<T>::Insert;
void IList<T>.Insert(int index, T item);
abstract member System.Collections.Generic.IList<T>.Insert : int * 'T -> unit
override this.System.Collections.Generic.IList<T>.Insert : int * 'T -> unit
Sub Insert (index As Integer, item As T) Implements IList(Of T).Insert
參數
- index
- Int32
應插入的以零為基礎的索引 item 。
- item
- T
要插入的物件。
實作
例外狀況
備註
此成員為明確介面成員實作。 它只能在實 ImmutableList<T> 例投射到 IList<T> 介面時使用。