ThreadContextStack Class | Apache log4net™ SDK Documentation

Implementation of Stack for the ThreadContext
Inheritance Hierarchy

System
Object
log4net.Util
ThreadContextStack

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

C#
VB
C++
F#
Copy

    public sealed class ThreadContextStack : IFixingRequired

    Public NotInheritable Class ThreadContextStack
    	Implements IFixingRequired

    public ref class ThreadContextStack sealed : IFixingRequired

    [<SealedAttribute>]
    type ThreadContextStack =
        class
            interface IFixingRequired
        end

The ThreadContextStack type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| Count | The number of messages in the stack

Top
Methods

| Name | Description
--- | --- | ---
| Clear | Clears all the contextual information held in this stack.
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| Pop | Removes the top context from this stack.
| Push | Pushes a new context message into this stack.
| ToString | Gets the current context information for this stack. (Overrides Object ToString .)

Top
Remarks

Implementation of Stack for the ThreadContext

See Also

#### Reference

log4net.Util Namespace