TypedSortedListEx
TKey
,
TValue
Add Method (
TKey
,
TValue
)
|
Adds an element with the provided key and value to the list.
Namespace:
Spire.Doc.Collections
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public virtual void Add(
TKey key,
TValue value
)
Public Overridable Sub Add (
key As TKey,
value As TValue
)
public:
virtual void Add(
TKey key,
TValue value
)
abstract Add :
key : 'TKey *
value : 'TValue -> unit
override Add :
key : 'TKey *
value : 'TValue -> unit
Parameters
-
key
-
Type:
TKey
The Object to use as the key of the element to add.
-
value
-
Type:
TValue
The Object to use as the value of the element to add.
Implements
IDictionary
TKey, TValue
Add(TKey, TValue)
Exceptions
Exception
|
Condition
|
ArgumentNullException
|
When key is null.
|
ArgumentException
|
When list already contains specified key.
|
See Also