Edit

Share via


XPathMessageFilterTable<TFilterData>.NodeQuota Property

Definition

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