EmptyDictionaryAdd Method Apache log4net™ SDK Documentation
Adds an element with the provided key and value to the EmptyDictionary.

Namespace: log4net.Util
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public void Add(
	Object key,
	Object value
)

Parameters

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

Implements

IDictionaryAdd(Object, Object)
Exceptions

ExceptionCondition
InvalidOperationExceptionThis 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

Reference