EmptyDictionary Remove Method | Apache log4net™ SDK Documentation

Removes the element with the specified key from the EmptyDictionary.

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

C#
VB
C++
F#
Copy

    public void Remove(
    	Object key
    )

    Public Sub Remove (
    	key As Object
    )

    public:
    virtual void Remove(
    	Object^ key
    ) sealed

    abstract Remove :
            key : Object -> unit
    override Remove :
            key : Object -> unit

#### Parameters

key
  Type: System
  Object
  The key of the element to remove.

#### Implements

IDictionary
Remove(Object)
Exceptions

Exception | Condition
--- | ---
InvalidOperationException | This dictionary is always empty and cannot be modified.

Remarks

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

See Also

#### Reference

EmptyDictionary Class
log4net.Util Namespace