FlexReport for WinForms
Add メソッド (OrderedDictionary<TKey,TValue>)


C1.Report.4.6.2 アセンブリ > C1.Report.Util 名前空間 > OrderedDictionary<TKey,TValue> クラス : Add メソッド
The key of the entry to add.
The value of the entry to add. This value can be .
Adds an entry with the specified key and value into the OrderedDictionary<TKey,TValue> collection with the lowest available index.
シンタックス
'宣言
 
Public Function Add( _
   ByVal key As TKey, _
   ByVal value As TValue _
) As System.Integer
'使用法
 
Dim instance As OrderedDictionary(Of TKey,TValue)
Dim key As TKey
Dim value As TValue
Dim value As System.Integer
 
value = instance.Add(key, value)
public System.int Add( 
   TKey key,
   TValue value
)

パラメータ

key
The key of the entry to add.
value
The value of the entry to add. This value can be .

戻り値の型

The index of the newly added entry.
例外
例外解説
key is .
An element with the same key already exists in the OrderedDictionary<TKey,TValue>.
解説
A key cannot be , but a value can be.

You can also use the Item OrderedDictionary<TKey,TValue> property to add new elements by setting the value of a key that does not exist in the OrderedDictionary<TKey,TValue> collection; however, if the specified key already exists in the OrderedDictionary<TKey,TValue>, setting the Item of OrderedDictionary<TKey,TValue> property overwrites the old value. In contrast, the OrderedDictionary<TKey,TValue>.Add method does not modify existing elements.

参照

参照

OrderedDictionary<TKey,TValue> クラス
OrderedDictionary<TKey,TValue> メンバ