Click or drag to resize

LoggerPushScopePropertiesTValue Method (IReadOnlyCollectionKeyValuePairString, TValue)

Updates the ScopeContext with provided properties

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public IDisposable PushScopeProperties<TValue>(
	IReadOnlyCollection<KeyValuePair<string, TValue>> scopeProperties
)

Parameters

scopeProperties
Type: System.Collections.GenericIReadOnlyCollectionKeyValuePairString, TValue
Properties being added to the scope dictionary

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