| TargetWithContextCaptureContextGdc Method |
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax protected virtual IDictionary<string, Object> CaptureContextGdc(
LogEventInfo logEvent,
IDictionary<string, Object> contextProperties
)
Protected Overridable Function CaptureContextGdc (
logEvent As LogEventInfo,
contextProperties As IDictionary(Of String, Object)
) As IDictionary(Of String, Object)
Dim logEvent As LogEventInfo
Dim contextProperties As IDictionary(Of String, Object)
Dim returnValue As IDictionary(Of String, Object)
returnValue = Me.CaptureContextGdc(logEvent,
contextProperties)
abstract CaptureContextGdc :
logEvent : LogEventInfo *
contextProperties : IDictionary<string, Object> -> IDictionary<string, Object>
override CaptureContextGdc :
logEvent : LogEventInfo *
contextProperties : IDictionary<string, Object> -> IDictionary<string, Object>
Parameters
- logEvent
- Type: NLogLogEventInfo
- contextProperties
- Type: System.Collections.GenericIDictionaryString, Object
Optional pre-allocated dictionary for the snapshot
Return Value
Type:
IDictionaryString,
ObjectDictionary with GDC context if any, else null
See Also