Click or drag to resize
MappedDiagnosticsContext Methods

The MappedDiagnosticsContext type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClear
Clears the content of current thread MDC.
Public methodStatic memberContains
Checks whether the specified item exists in current thread MDC.
Public methodStatic memberGet(String)
Gets the current thread MDC named item, as String.
Public methodStatic memberGet(String, IFormatProvider)
Gets the current thread MDC named item, as String.
Public methodStatic memberGetObject
Gets the current thread MDC named item, as Object.
Public methodStatic memberRemove
Removes the specified item from current thread MDC.
Public methodStatic memberSet(String, Object)
Sets the current thread MDC item to the specified value.
Public methodStatic memberSet(String, String)
Sets the current thread MDC item to the specified value.
Top
See Also