XPathMessageFilterTable<TFilterData>.NodeQuota 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 or sets the maximum number of XML document nodes that can be examined by the individual filters during a single call to a Match
method. This value applies for each filter.
public:
property int NodeQuota { int get(); void set(int value); };
[System.Runtime.Serialization.DataMember]
public int NodeQuota { get; set; }
[<System.Runtime.Serialization.DataMember>]
member this.NodeQuota : int with get, set
Public Property NodeQuota As Integer
Property Value
The number of nodes that can be examined.
- Attributes
Remarks
This property can be used to alleviate a security threat. Some filters can be extremely expensive to evaluate or are very long-running. XPathMessageFilters are most often evaluated against a document from an untrusted source (SOAP message off the wire), which may be malicious. Because filters operate on XML documents, the best way to set computational limits on filter tables is to specify the maximum number of nodes that are examined while evaluating a filter in this table.
Applies to
.NET