Click or drag to resize
GDC Class

Note: This API is now obsolete.

Global Diagnostics Context - used for log4net compatibility.
Inheritance Hierarchy
SystemObject
  NLogGDC

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

The GDC type exposes the following members.

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