Cache.EffectivePercentagePhysicalMemoryLimit 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取应用程序可以在 ASP.NET 开始从缓存中删除项之前使用的物理内存的百分比。
public:
property long EffectivePercentagePhysicalMemoryLimit { long get(); };
public long EffectivePercentagePhysicalMemoryLimit { get; }
member this.EffectivePercentagePhysicalMemoryLimit : int64
Public ReadOnly Property EffectivePercentagePhysicalMemoryLimit As Long
属性值
应用程序可用的物理内存百分比。
注解
该 EffectivePercentagePhysicalMemoryLimit 属性返回可供应用程序使用的物理内存的百分比。 当可用百分比变低时,缓存算法开始从缓存中删除项。
EffectivePercentagePhysicalMemoryLimit可以使用缓存元素的属性(ASP.NET 设置架构)元素在应用程序的配置文件中设置percentagePhysicalMemoryUsedLimit该属性。 如果未设置属性 percentagePhysicalMemoryUsedLimit ,缓存算法将确定缓存的最大大小,并 EffectivePercentagePhysicalMemoryLimit 计算该属性。
EffectivePercentagePhysicalMemoryLimit 在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参阅 版本和依赖项。