Редактиране

Споделяне чрез


MessageLoggingElement.Filters Property

Definition

Gets the XPathFilter objects that are used for message logging.

public:
 property System::ServiceModel::Configuration::XPathMessageFilterElementCollection ^ Filters { System::ServiceModel::Configuration::XPathMessageFilterElementCollection ^ get(); };
[System.Configuration.ConfigurationProperty("filters", DefaultValue=null)]
public System.ServiceModel.Configuration.XPathMessageFilterElementCollection Filters { get; }
[<System.Configuration.ConfigurationProperty("filters", DefaultValue=null)>]
member this.Filters : System.ServiceModel.Configuration.XPathMessageFilterElementCollection
Public ReadOnly Property Filters As XPathMessageFilterElementCollection

Property Value

A collection of XPathFilter objects that are used for message logging.

Attributes

Examples

The following is an example in configuring a filter that records only messages that have a SOAP Header section.

Remarks

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.

Applies to