NDCPop Method Apache log4net™ SDK Documentation
Removes the top context from the stack.

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

public static string Pop()

Return Value

Type: String
The message in the context that was removed from the top of the stack.
Remarks

Note Note

The NDC is deprecated and has been replaced by the Stacks. The current NDC implementation forwards to the ThreadContext.Stacks["NDC"].

Remove the top context from the stack, and return it to the caller. If the stack is empty then an empty string (not null) is returned.

See Also

Reference