Click or drag to resize

ScopeContextPushProperties Method (IReadOnlyCollectionKeyValuePairString, Object)

Updates the logical scope context with provided properties

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntax
public static IDisposable PushProperties(
	IReadOnlyCollection<KeyValuePair<string, Object>> properties
)

Parameters

properties
Type: System.Collections.GenericIReadOnlyCollectionKeyValuePairString, Object
Properties being added to the scope dictionary

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