log4net SDK Reference |

# MdcFilter Class

Simple filter to match a keyed string in the MDC

For a list of all members of this type, see MdcFilter Members.

System.Object
log4net.Filter.FilterSkeleton
log4net.Filter.StringMatchFilter
log4net.Filter.PropertyFilter
log4net.Filter.MdcFilter

[Visual Basic]
Public Class MdcFilter
Inherits PropertyFilter
[C#]
public class MdcFilter : PropertyFilter

#### Thread Safety

This type is not safe for multithreaded operations.

#### Remarks

Simple filter to match a keyed string in the MDC

As the MDC has been replaced with layered properties the PropertyFilter should be used instead.

#### Requirements

Namespace: log4net.Filter

Assembly: log4net (in log4net.dll)

#### See Also

MdcFilter Members | log4net.Filter Namespace