NDC Pop Method | Apache log4net™ SDK Documentation

Removes the top context from the stack.

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

C#
VB
C++
F#
Copy

    public static string Pop()

    Public Shared Function Pop As String

    public:
    static String^ Pop()

    static member Pop : unit -> string

#### Return Value

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

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

NDC Class
log4net Namespace