Assembly: log4net (in log4net.dll) Version: 188.8.131.52-.NET 4.0
public static void Set( string key, string value )
Public Shared Sub Set ( key As String, value As String )
public: static void Set( String^ key, String^ value )
static member Set : key : string * value : string -> unit
The MDC is deprecated and has been replaced by the Properties. The current MDC implementation forwards to the ThreadContext.Properties.
Puts a context value (the value parameter) as identified with the key parameter into the current thread's context map.
If a value is already defined for the key specified then the value will be replaced. If the value is specified as null then the key value mapping will be removed.