Gets or sets the element with the specified key.
Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
Parameters
- key
- Type: SystemObject
The key of the element to get or set.
Property Value
Type: Objectnull
Implements
IDictionaryItemObjectExceptions
Exception | Condition |
---|---|
InvalidOperationException | This dictionary is always empty and cannot be modified. |
Remarks
As the collection is empty no values can be looked up or stored. If the index getter is called then null is returned. A InvalidOperationException is thrown if the setter is called.
See Also