Gets or sets the element with the specified key.
Namespace: log4net.UtilAssembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax
Parameters
- key
- Type: System Object
The key of the element to get or set.
Property Value
Type: Objectnull
Implements
IDictionary Item ObjectExceptions
Exception | Condition |
---|---|
System 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