Click or drag to resize

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: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
protected IDictionary<string, Object?>? GetContextProperties(
	LogEventInfo logEvent
)

Parameters

logEvent
Type: NLogLogEventInfo

Return Value

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