Click or drag to resize
NDC Class

Note: This API is now obsolete.

Nested Diagnostics Context - for log4net compatibility.
Inheritance Hierarchy
SystemObject
  NLogNDC

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
[ObsoleteAttribute("Use NestedDiagnosticsContext")]
public static class NDC

The NDC type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberTopMessage
Gets the top NDC message but doesn't remove it.
Public propertyStatic memberTopObject
Gets the top NDC object but doesn't remove it.
Top
Methods
  NameDescription
Public methodStatic memberClear
Clears current thread NDC stack.
Public methodStatic memberGetAllMessages
Gets all messages on the stack.
Public methodStatic memberGetAllObjects
Gets all objects on the NDC stack. The objects are not removed from the stack.
Public methodStatic memberPop
Pops the top message off the NDC stack.
Public methodStatic memberPopObject
Pops the top object off the NDC stack. The object is removed from the stack.
Public methodStatic memberPush
Pushes the specified text on current thread NDC.
Top
See Also