NDC Methods | Apache log4net™ SDK Documentation

The NDC type exposes the following members.

Methods

| Name | Description
--- | --- | ---
| Clear | Clears all the contextual information held on the current thread.
| CloneStack | Creates a clone of the stack of context information.
| 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.)
| Inherit | Inherits the contextual information from another thread.
| Pop | Removes the top context from the stack.
| Push | Pushes a new context message.
| PushFormat | Pushes a new context message.
| Remove | Removes the context information for this thread. It is not required to call this method.
| SetMaxDepth | Forces the stack depth to be at most maxDepth.
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
See Also

#### Reference

NDC Class
log4net Namespace