C# Class NLog.NDC

Afficher le fichier Open project: NLog/NLog

Méthodes publiques

Méthode 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 méthode

Clears current thread NDC stack.
public static Clear ( ) : void
Résultat void

GetAllMessages() public static méthode

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

GetAllObjects() public static méthode

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

Pop() public static méthode

Pops the top message off the NDC stack.
public static Pop ( ) : string
Résultat string

PopObject() public static méthode

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

Push() public static méthode

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