log4net SDK Reference |

# MDC.Clear Method

Clear all entries in the MDC

[Visual Basic]
Public Shared Sub Clear()
[C#]
public static void Clear();

#### Remarks

> Note

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

Remove all the entries from this thread's MDC

#### See Also

MDC Class | log4net Namespace