EmptyDictionary Clear Method | Apache log4net™ SDK Documentation

Removes all elements 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 Clear()

    Public Sub Clear

    public:
    virtual void Clear() sealed

    abstract Clear : unit -> unit
    override Clear : unit -> unit

#### Implements

IDictionary
Clear
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