| NestedDiagnosticsLogicalContextPushT Method |
Note: This API is now obsolete.
Pushes the specified value on current stack
Namespace:
NLog
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax [ObsoleteAttribute("Replaced by ScopeContext.PushNestedState or Logger.PushScopeNested using ${scopenested}. Marked obsolete on NLog 5.0")]
public static IDisposable Push<T>(
T value
)
<ObsoleteAttribute("Replaced by ScopeContext.PushNestedState or Logger.PushScopeNested using ${scopenested}. Marked obsolete on NLog 5.0")>
Public Shared Function Push(Of T) (
value As T
) As IDisposable
Dim value As T
Dim returnValue As IDisposable
returnValue = NestedDiagnosticsLogicalContext.Push(value)
[<ObsoleteAttribute("Replaced by ScopeContext.PushNestedState or Logger.PushScopeNested using ${scopenested}. Marked obsolete on NLog 5.0")>]
static member Push :
value : 'T -> IDisposable
Parameters
- value
- Type: T
The value to be pushed.
Type Parameters
- T
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