MessageLoggingElement.Filters Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기