Click or drag to resize

ScopeContextPushPropertyTValue Method (String, TValue)

Updates the logical scope context with provided property

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public static IDisposable PushProperty<TValue>(
	string key,
	TValue value
)

Parameters

key
Type: SystemString
Name of property
value
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
Scope dictionary keys are case-insensitive
See Also