XPathMessageFilter.NodeQuota 属性

定义

获取或设置筛选器评估期间应查看的最大节点数。Gets or sets the maximum number of nodes that should be looked at during filter evaluation.

public:
 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

属性值

Int32

筛选器评估期间应查看的最大节点数。The maximum number of nodes that should be looked at during filter evaluation.

例外

配额为零或负数。The quota is zero or negative.

注解

某些筛选器用于评估的开销极大,或需要长时间运行。Some filters can be extremely expensive to evaluate or are very long running. 因为筛选器在 XML 文档上执行,所以设置计算限制的最好方法是指定在筛选器评估期间应查看的最大节点数。Because filters operate on XML documents, the best way to set computational limits is to specify the maximum number of nodes that should be looked at during a filter evaluation.

配额最初设置为 MaxValueThe quota is initially set to MaxValue.

适用于