MDC Clear Method | Apache log4net™ SDK Documentation

Clear all entries in the MDC

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

C#
VB
C++
F#
Copy

    public static void Clear()

    Public Shared Sub Clear

    public:
    static void Clear()

    static member Clear : unit -> unit

Remarks

Note
The MDC is deprecated and has been replaced by the Properties. The current MDC implementation forwards to the ThreadContext.Properties.

Remove all the entries from this thread's MDC

See Also

#### Reference

MDC Class
log4net Namespace