共用方式為


OrderedDictionary<TKey,TValue>.IList<KeyValuePair<TKey,TValue>>.Insert 方法

定義

將專案插入指定索引處的 IList<T>

 virtual void System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Insert(int index, System::Collections::Generic::KeyValuePair<TKey, TValue> item) = System::Collections::Generic::IList<System::Collections::Generic::KeyValuePair<TKey, TValue>>::Insert;
void IList<KeyValuePair<TKey,TValue>>.Insert (int index, System.Collections.Generic.KeyValuePair<TKey,TValue> item);
abstract member System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Insert : int * System.Collections.Generic.KeyValuePair<'Key, 'Value> -> unit
override this.System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Insert : int * System.Collections.Generic.KeyValuePair<'Key, 'Value> -> unit
Sub Insert (index As Integer, item As KeyValuePair(Of TKey, TValue)) Implements IList(Of KeyValuePair(Of TKey, TValue)).Insert

參數

index
Int32

應該插入 item 之以零起始的索引。

item
KeyValuePair<TKey,TValue>

要插入至 IList<T>的物件。

實作

適用於