Click or drag to resize

LoggerPushScopePropertyTValue Method (String, TValue)

Updates the ScopeContext with provided property

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public IDisposable PushScopeProperty<TValue>(
	string propertyName,
	TValue propertyValue
)

Parameters

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

Type Parameters

TValue

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