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

屬性值

應在篩選評估期間查看的節點數目上限。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.

適用於