 | GlobalDiagnosticsContextSet Method (String, Object) |
Sets the value with the specified key in the Global Diagnostics Context (GDC) dictionary
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxpublic static void Set(
string item,
Object value
)
Public Shared Sub Set (
item As String,
value As Object
)
Dim item As String
Dim value As Object
GlobalDiagnosticsContext.Set(item, value)
static member Set :
item : string *
value : Object -> unit
Parameters
- item
- Type: SystemString
Item name. - value
- Type: SystemObject
Item value.
See Also