Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

NDC.Clear�Method�

Clears all the contextual information held on the current thread.

[Visual�Basic]
Public�Shared�Sub�Clear()
[C#]
public�static�void�Clear();

Remarks

Note���

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.

See Also

NDC Class | log4net Namespace