FrozenDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Add 方法

定義

將隨附有索引鍵和值的項目加入至 IDictionary<TKey,TValue>

 virtual void System.Collections.Generic.IDictionary<TKey,TValue>.Add(TKey key, TValue value) = System::Collections::Generic::IDictionary<TKey, TValue>::Add;
void IDictionary<TKey,TValue>.Add (TKey key, TValue value);
abstract member System.Collections.Generic.IDictionary<TKey,TValue>.Add : 'Key * 'Value -> unit
override this.System.Collections.Generic.IDictionary<TKey,TValue>.Add : 'Key * 'Value -> unit
Sub Add (key As TKey, value As TValue) Implements IDictionary(Of TKey, TValue).Add

參數

key
TKey

做為要加入項目之索引鍵的物件。

value
TValue

做為要加入項目之值的物件。

實作

適用於