Click or drag to resize
NestedDiagnosticsContext Methods

The NestedDiagnosticsContext type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClear
Clears current thread NDC stack.
Public methodStatic memberGetAllMessages
Gets all messages on the stack.
Public methodStatic memberGetAllMessages(IFormatProvider)
Gets all messages from the stack, without removing them.
Public methodStatic memberGetAllObjects
Gets all objects on the stack.
Public methodStatic memberPop
Pops the top message off the NDC stack.
Public methodStatic memberPop(IFormatProvider)
Pops the top message from the NDC stack.
Public methodStatic memberPopObject
Pops the top object off the NDC stack.
Public methodStatic memberPush(Object)
Pushes the specified object on current thread NDC.
Public methodStatic memberPush(String)
Pushes the specified text on current thread NDC.
Top
See Also