log4net SDK Reference

EmptyDictionary.Add Method 

Adds an element with the provided key and value to the EmptyDictionary.

[Visual Basic]
NotOverridable Public Sub Add( _
   ByVal key As Object, _
   ByVal value As Object _
) _
    Implements IDictionary.Add
[C#]
public void Add(
   object key,
   object value
);

Parameters

key
The Object to use as the key of the element to add.
value
The Object to use as the value of the element to add.

Implements

IDictionary.Add

Remarks

As the collection is empty no new values can be added. A InvalidOperationException is thrown if this method is called.

Exceptions

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

See Also

EmptyDictionary Class | log4net.Util Namespace