Cache.EffectivePrivateBytesLimit 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得快取可用的位元組數目。
public:
property long EffectivePrivateBytesLimit { long get(); };
public long EffectivePrivateBytesLimit { get; }
member this.EffectivePrivateBytesLimit : int64
Public ReadOnly Property EffectivePrivateBytesLimit As Long
屬性值
快取可用的位元組數目。
範例
EffectivePercentagePhysicalMemoryLimit
備註
屬性 EffectivePrivateBytesLimit 會傳回應用程式進程可以使用的位元組數目。 達到此限制之後,快取演算法就會開始積極清除快取。
EffectivePrivateBytesLimit屬性可以使用快取元素的 屬性來設定 privateBytesLimit
,以 (ASP.NET 設定在應用程式的組態檔中快取架構) 元素。 privateBytesLimit
未設定屬性時,快取演算法會決定快取的大小上限,而 EffectivePrivateBytesLimit 屬性則包含演算法所選擇的大小。