Click or drag to resize
GlobalDiagnosticsContext Class
Global Diagnostics Context - a dictionary structure to hold per-application-instance values.
Inheritance Hierarchy
SystemObject
  NLogGlobalDiagnosticsContext

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public static class GlobalDiagnosticsContext

The GlobalDiagnosticsContext 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(String, Object)
Sets the Global Diagnostics Context item to the specified value.
Public methodStatic memberSet(String, String)
Sets the Global Diagnostics Context item to the specified value.
Top
See Also