 | NestedDiagnosticsLogicalContextPushObject Method |
Note: This API is now obsolete.
Pushes the specified value on current stack
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax[ObsoleteAttribute("Replaced by ScopeContext.PushNestedState or Logger.PushScopeNested using ${scopenested}. Marked obsolete on NLog 5.0")]
public static IDisposable PushObject(
Object value
)
<ObsoleteAttribute("Replaced by ScopeContext.PushNestedState or Logger.PushScopeNested using ${scopenested}. Marked obsolete on NLog 5.0")>
Public Shared Function PushObject (
value As Object
) As IDisposable
Dim value As Object
Dim returnValue As IDisposable
returnValue = NestedDiagnosticsLogicalContext.PushObject(value)
[<ObsoleteAttribute("Replaced by ScopeContext.PushNestedState or Logger.PushScopeNested using ${scopenested}. Marked obsolete on NLog 5.0")>]
static member PushObject :
value : Object -> IDisposable
Parameters
- value
- Type: SystemObject
The value to be pushed.
Return Value
Type:
IDisposableAn instance of the object that implements IDisposable that returns the stack to the previous level when IDisposable.Dispose() is called. To be used with C# using() statement.
See Also