Click or drag to resize

ScopeContextPushNestedStateProperties Method

Pushes new state on the logical context scope stack together with provided properties

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

Parameters

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

Return Value

Type: IDisposable
A disposable object that pops the nested scope state on dispose (including properties).
Remarks
Scope dictionary keys are case-insensitive
See Also