 | ScopeContextPushNestedStateT Method (T) |
Pushes new state on the logical context scope stack
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntaxpublic static IDisposable PushNestedState<T>(
T nestedState
)
Public Shared Function PushNestedState(Of T) (
nestedState As T
) As IDisposable
Dim nestedState As T
Dim returnValue As IDisposable
returnValue = ScopeContext.PushNestedState(nestedState)
static member PushNestedState :
nestedState : 'T -> IDisposable
Parameters
- nestedState
- Type: T
Value to added to the scope stack
Type Parameters
- T
Return Value
Type:
IDisposableA disposable object that pops the nested scope state on dispose.
RemarksSkips casting of nestedState to check for scope-properties
See Also