Adds an element with the provided key and value to the
EmptyDictionary.
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
Parameters
- key
- Type: SystemObject
The Object to use as the key of the element to add. - value
- Type: SystemObject
The Object to use as the value of the element to add.
Implements
IDictionaryAdd(Object, Object)Exceptions
Exception | Condition |
---|---|
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