MessageLoggingElement::Filters Property
.NET Framework (current version)
Gets the XPathFilter objects that are used for message logging.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
public: [ConfigurationPropertyAttribute("filters", DefaultValue = null)] property XPathMessageFilterElementCollection^ Filters { XPathMessageFilterElementCollection^ get(); }
Property Value
Type: System.ServiceModel.Configuration::XPathMessageFilterElementCollection^A collection of XPathFilter objects that are used for message logging.
Message filters are applied at the service and transport level. When one or more filters are defined, only messages that match at least one of the filters are logged. If no filter is defined, all messages pass through.
Filters support the full XPath syntax, and are applied in the order they appear in the configuration file. A syntactically incorrect filter results in a configuration exception.
The following is an example in configuring a filter that records only messages that have a SOAP Header section.
.NET Framework
Available since 3.0
Available since 3.0
Show: