 | TargetWithContextGetContextProperties Method (LogEventInfo) |
Checks if any context properties, and if any returns them as a single dictionary
Namespace:
NLog.Targets
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxprotected IDictionary<string, Object> GetContextProperties(
LogEventInfo logEvent
)
Protected Function GetContextProperties (
logEvent As LogEventInfo
) As IDictionary(Of String, Object)
Dim logEvent As LogEventInfo
Dim returnValue As IDictionary(Of String, Object)
returnValue = Me.GetContextProperties(logEvent)
member GetContextProperties :
logEvent : LogEventInfo -> IDictionary<string, Object>
Parameters
- logEvent
- Type: NLogLogEventInfo
Return Value
Type:
IDictionaryString,
ObjectDictionary with any context properties for the logEvent (Null if none found)
See Also