log4net SDK Reference

EmptyDictionary.Item Property

Gets or sets the element with the specified key.

[Visual Basic]
NotOverridable Public Default Property Item( _
   ByVal key As Object _
) _
    Implements IDictionary.Item
 As Object _
    Implements IDictionary.Item
[C#]
public object this[
   object key
] {get; set;}

Parameters

key
The key of the element to get or set.

Property Value

null

Implements

IDictionary.Item

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.

Exceptions

Exception TypeCondition
InvalidOperationExceptionThis dictionary is always empty and cannot be modified.

See Also

EmptyDictionary Class | log4net.Util Namespace