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: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public static class GlobalDiagnosticsContext

The GlobalDiagnosticsContext type exposes the following members.

Methods
  NameDescription
Public methodStatic memberClear
Clears the content of the Global Diagnostics Context (GDC) dictionary.
Public methodStatic memberContains
Determines whether the Global Diagnostics Context (GDC) dictionary contains the specified key.
Public methodStatic memberGet(String)
Gets the value with the specified key in the Global Diagnostics Context (GDC) dictionary
Public methodStatic memberGet(String, IFormatProvider)
Gets the value with the specified key in the Global Diagnostics Context (GDC) dictionary
Public methodStatic memberGetNames
Gets all key-names from Global Diagnostics Context (GDC) dictionary
Public methodStatic memberGetObject
Gets the value with the specified key in the Global Diagnostics Context (GDC) dictionary
Public methodStatic memberRemove
Removes the value with the specified key from the Global Diagnostics Context (GDC) dictionary
Public methodStatic memberSet(String, Object)
Sets the value with the specified key in the Global Diagnostics Context (GDC) dictionary
Public methodStatic memberSet(String, String)
Sets the value with the specified key in the Global Diagnostics Context (GDC) dictionary
Top
See Also