XPathMessageFilterTable<TFilterData>.NodeQuota Property


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.

 property int NodeQuota { int get(); void set(int value); };
public int NodeQuota { get; set; }
member this.NodeQuota : int with get, set
Public Property NodeQuota As Integer

Property Value


The number of nodes that can be examined.



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