MessageLoggingElement.Filters プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
メッセージ ログに使用される XPathFilter オブジェクトを取得します。
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
プロパティ値
メッセージ ログに使用される XPathFilter オブジェクトのコレクション。
- 属性
例
SOAP ヘッダー セクションを持つメッセージのみを記録するフィルターを構成する例を次に示します。
注釈
メッセージ フィルターは、サービス レベルとトランスポート レベルで適用されます。 1 つ以上のフィルターが定義されている場合、少なくとも 1 つのフィルターに一致するメッセージのみがログに記録されます。 フィルターが定義されていない場合は、すべてのメッセージが通過します。
フィルターは完全な XPath 構文をサポートし、構成ファイルに表示される順序で適用されます。 構文的に正しくないフィルターの結果、構成例外が発生します。