Adds an element with the provided key and value to the
EmptyDictionary.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.14.0 (1.2.14.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
Exceptions
| Exception | Condition |
|---|---|
| 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