| TargetWithContextCaptureScopeContextProperties Method |
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax protected virtual IDictionary<string, Object> CaptureScopeContextProperties(
LogEventInfo logEvent,
IDictionary<string, Object> contextProperties
)
Protected Overridable Function CaptureScopeContextProperties (
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.CaptureScopeContextProperties(logEvent,
contextProperties)
abstract CaptureScopeContextProperties :
logEvent : LogEventInfo *
contextProperties : IDictionary<string, Object> -> IDictionary<string, Object>
override CaptureScopeContextProperties :
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 ScopeContext properties if any, else null
See Also