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.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
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