| 
TypedSortedListEx
 TKey
,
 TValue
Add Method (Object, Object)
  | 
 Adds a new entry with the specified key and value to the dictionary.
 Namespace:
 Spire.Doc.Collections
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
public void Add(
	Object key,
	Object value
)
 
Public Sub Add ( 
	key As Object,
	value As Object
)
 
public:
virtual void Add(
	Object^ key, 
	Object^ value
) sealed
 
abstract Add : 
key : Object * 
value : Object -> unit 
override Add : 
key : Object * 
value : Object -> unit 
 
 
 
Parameters
 
- 
key
 
- 
 Type:
 
System
Object
 
 The key of the element to add.
- 
value
 
- 
 Type:
 
System
Object
 
 The value of the element to add.
Implements
 
IDictionary
Add(Object, Object)
 
 
 Exceptions
Exceptions
 
 
| Exception | Condition | 
| ArgumentException | Thrown when the key is already present in the dictionary. | 
| ArgumentNullException | Thrown when the key is null. | 
 
 
 See Also
See Also