Click or drag to resize

ScopeContextPushPropertiesTValue Method (IReadOnlyCollectionKeyValuePairString, TValue)

Updates the logical scope context with provided properties

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
public static IDisposable PushProperties<TValue>(
	IReadOnlyCollection<KeyValuePair<string, TValue>> properties
)

Parameters

properties
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
Scope dictionary keys are case-insensitive
See Also