C# Class NLog.NDC

Datei anzeigen Open project: NLog/NLog

Public Methods

Method Description
Clear ( ) : void

Clears current thread NDC stack.

GetAllMessages ( ) : string[]

Gets all messages on the stack.

GetAllObjects ( ) : object[]

Gets all objects on the NDC stack. The objects are not removed from the stack.

Pop ( ) : string

Pops the top message off the NDC stack.

PopObject ( ) : object

Pops the top object off the NDC stack. The object is removed from the stack.

Push ( string text ) : IDisposable

Pushes the specified text on current thread NDC.

Method Details

Clear() public static method

Clears current thread NDC stack.
public static Clear ( ) : void
return void

GetAllMessages() public static method

Gets all messages on the stack.
public static GetAllMessages ( ) : string[]
return string[]

GetAllObjects() public static method

Gets all objects on the NDC stack. The objects are not removed from the stack.
public static GetAllObjects ( ) : object[]
return object[]

Pop() public static method

Pops the top message off the NDC stack.
public static Pop ( ) : string
return string

PopObject() public static method

Pops the top object off the NDC stack. The object is removed from the stack.
public static PopObject ( ) : object
return object

Push() public static method

Pushes the specified text on current thread NDC.
public static Push ( string text ) : IDisposable
text string The text to be pushed.
return IDisposable