MDC Remove Method | Apache log4net™ SDK Documentation

Removes the key value mapping for the key specified.

Namespace: log4net
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public static void Remove(
    	string key
    )

    Public Shared Sub Remove (
    	key As String
    )

    public:
    static void Remove(
    	String^ key
    )

    static member Remove :
            key : string -> unit

#### Parameters

key
  Type: System
  String
  The key to remove.

Remarks

Note
The MDC is deprecated and has been replaced by the Properties. The current MDC implementation forwards to the ThreadContext.Properties.

Remove the specified entry from this thread's MDC

See Also

#### Reference

MDC Class
log4net Namespace