OrderedDictionary<TKey,TValue>.Insert(Int32, TKey, TValue) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts an item into the collection at the specified index.
public:
void Insert(int index, TKey key, TValue value);
public void Insert (int index, TKey key, TValue value);
member this.Insert : int * 'Key * 'Value -> unit
Public Sub Insert (index As Integer, key As TKey, value As TValue)
Parameters
- index
- Int32
The zero-based index at which item should be inserted.
- key
- TKey
The key to insert.
- value
- TValue
The value to insert.
Exceptions
key is null
.
An element with the same key already exists in the OrderedDictionary<TKey,TValue>.
index
is less than 0 or greater than Count.
Applies to
GitHub पर हमारे साथ सहयोग करें
इस सामग्री का स्रोत GitHub पर पाया जा सकता है, जहाँ आप समस्याएँ बना और समीक्षा भी कर सकते हैं और अनुरोध खींच सकते हैं. अधिक जानकारी के लिए, हमारे योगदानकर्ता गाइड देखें.