Clears all the contextual information held on the current thread.
Assembly: log4net (in log4net.dll) Version: 126.96.36.199-.NET 4.0
public static void Clear()
Public Shared Sub Clear
public: static void Clear()
static member Clear : unit -> unit
The NDC is deprecated and has been replaced by the Stacks. The current NDC implementation forwards to the ThreadContext.Stacks["NDC"].
Clears the stack of NDC data held on the current thread.