log4net SDK Reference

MDC.Remove Method 

Removes the key value mapping for the key specified.

[Visual Basic]
Public Shared Sub Remove( _
   ByVal key As String _
)
[C#]
public static void Remove(
   string key
);

Parameters

key
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

MDC Class | log4net Namespace