Inserts a new entry into the OrderedDictionary<TKey,TValue> collection with the specified key and value at the specified index.
Namespace: Ifs.Fnd.CoreAssembly: Ifs.Fnd.Core (in Ifs.Fnd.Core.dll) Version: 4.0.0.0 (4.80.18.0)
Syntax
Parameters
- index
- Type:
System Int32
The zero-based index at which the element should be inserted.
- key
- Type: TKey
The key of the entry to add.
- value
- Type: TValue
The value of the entry to add. The value can be if the type of the values in the dictionary is a reference type.
Implements
IOrderedDictionary TKey, TValue Insert(Int32, TKey, TValue)Exceptions
Exception | Condition |
---|---|
![]() | index is less than 0. -or- index is greater than Count. |
![]() | key is . |
![]() | An element with the same key already exists in the OrderedDictionary<TKey,TValue>. |
See Also