Adds an element with the provided key and value to the
EmptyDictionary.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- key
- Type: System Object
The Object to use as the key of the element to add.
- value
- Type: System Object
The Object to use as the value of the element to add.
Implements
IDictionary Add(Object, Object)Exceptions
Exception | Condition |
---|---|
System InvalidOperationException | This dictionary is always empty and cannot be modified. |
Remarks
As the collection is empty no new values can be added. A InvalidOperationException is thrown if this method is called.
See Also