Click or drag to resize
MDC Class

Note: This API is now obsolete.

Mapped Diagnostics Context - used for log4net compatibility.
Inheritance Hierarchy
SystemObject
  NLogMDC

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

The MDC 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
Gets the current thread MDC named item.
Public methodStatic memberGetObject
Gets the current thread MDC named item.
Public methodStatic memberRemove
Removes the specified item from current thread MDC.
Public methodStatic memberSet
Sets the current thread MDC item to the specified value.
Top
See Also