Click or drag to resize

TargetWithContextGetContextProperties Method (LogEventInfo, IDictionaryString, Object)

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
Syntax
protected IDictionary<string, Object> GetContextProperties(
	LogEventInfo logEvent,
	IDictionary<string, Object> combinedProperties
)

Parameters

logEvent
Type: NLogLogEventInfo
combinedProperties
Type: System.Collections.GenericIDictionaryString, Object
Optional prefilled dictionary

Return Value

Type: IDictionaryString, Object
Dictionary with any context properties for the logEvent (Null if none found)
See Also