| ScopeContextPushNestedStateProperties Method |
Pushes new state on the logical context scope stack together with provided properties
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static IDisposable PushNestedStateProperties(
Object nestedState,
IReadOnlyCollection<KeyValuePair<string, Object>> properties
)
Public Shared Function PushNestedStateProperties (
nestedState As Object,
properties As IReadOnlyCollection(Of KeyValuePair(Of String, Object))
) As IDisposable
Dim nestedState As Object
Dim properties As IReadOnlyCollection(Of KeyValuePair(Of String, Object))
Dim returnValue As IDisposable
returnValue = ScopeContext.PushNestedStateProperties(nestedState,
properties)
static member PushNestedStateProperties :
nestedState : Object *
properties : IReadOnlyCollection<KeyValuePair<string, Object>> -> IDisposable
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:
IDisposableA disposable object that pops the nested scope state on dispose (including properties).
Remarks Scope dictionary keys are case-insensitive
See Also