Click or drag to resize
NestedDiagnosticsContextPush Method (Object)
Pushes the specified object on current thread NDC.

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
public static IDisposable Push(
	Object value


Type: SystemObject
The object to be pushed.

Return Value

Type: IDisposable
An 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