OrderedDictionaryTKey, TValueInsert Method
Namespace: Gemstone.CollectionsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.128 -- Release Build+d050cfc5563c89a1188cc3c6b2d417530856f490
public void Insert(
int index,
TKey key,
TValue value
)
Public Sub Insert (
index As Integer,
key As TKey,
value As TValue
)
public:
void Insert(
int index,
TKey key,
TValue value
)
function Insert(index, key, value);
Parameters
- index Int32
- The zero-based index of the key/value pair to insert.
- key TKey
- The key of the element to insert.
- value TValue
- The value of the element to insert.
ArgumentNullException | key is null. |
ArgumentException | An element with the same key already exists in the OrderedDictionaryTKey, TValue. |
ArgumentOutOfRangeException | index is less than 0.-or-index is greater than Count. |