語言

XPathMessageFilter.NodeQuota 屬性

定義

取得或設定在篩選器評估時應檢視的最大節點數量。

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

屬性值

篩選器評估時應檢視的最大節點數。

例外狀況

配額為零或負數。

備註

有些過濾器評估費用非常高,或使用時間很長。 由於過濾器是操作於 XML 文件上的,設定計算限制的最佳方式是指定在篩選器評估中應檢視的最大節點數量。

配額最初設定為 MaxValue。

適用於