Click or drag to resize

LoggerPushScopeProperty Method (String, Object)

Updates the ScopeContext with provided property

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public IDisposable PushScopeProperty(
	string propertyName,
	Object propertyValue
)

Parameters

propertyName
Type: SystemString
Name of property
propertyValue
Type: SystemObject
Value of property

Return Value

Type: IDisposable
A disposable object that removes the properties from logical context scope on dispose.
Remarks
ScopeContext property-dictionary-keys are case-insensitive
See Also