OutputCacheSection.EnableKernelCacheForVaryByStar 属性

定义

获取或设置一个值,该值指示是否启用内核缓存。

public:
 property bool EnableKernelCacheForVaryByStar { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableKernelCacheForVaryByStar", DefaultValue=false)]
public bool EnableKernelCacheForVaryByStar { get; set; }
[<System.Configuration.ConfigurationProperty("enableKernelCacheForVaryByStar", DefaultValue=false)>]
member this.EnableKernelCacheForVaryByStar : bool with get, set
Public Property EnableKernelCacheForVaryByStar As Boolean

属性值

true 如果启用了内核缓存,则为否则,为 false. 默认值为 false

属性

注解

如果为请求启用了静态压缩,但客户端请求了未压缩的响应,则禁用内核缓存。 只有压缩的响应缓存在内核中。

EnableKernelCacheForVaryByStar 属性设置为 true 不确保响应的内核缓存。 处理管道中的模块必须设置内核缓存策略。

EnableKernelCacheForVaryByStar 在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参阅 版本和依赖项

适用于

另请参阅