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

Namespace: NLog
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public static IDisposable Push(
	string text
)

Parameters

text
Type: SystemString
The text 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