Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

ThreadContextStack.Clear�Method�

Clears all the contextual information held in this stack.

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

Remarks

Clears all the contextual information held in this stack. Only call this if you think that this tread is being reused after a previous call execution which may not have completed correctly. You do not need to use this method if you always guarantee to call the Dispose method of the IDisposable returned from Push even in exceptional circumstances, for example by using the using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message")) syntax.

See Also

ThreadContextStack Class | log4net.Util Namespace