RequestCachingSection.DisableAllCaching 属性
定义
获取或设置一个在本地计算机上启用缓存的布尔值。Gets or sets a Boolean value that enables caching on the local computer.
public:
property bool DisableAllCaching { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("disableAllCaching", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public bool DisableAllCaching { get; set; }
[<System.Configuration.ConfigurationProperty("disableAllCaching", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.DisableAllCaching : bool with get, set
Public Property DisableAllCaching As Boolean
属性值
如果在本地计算机上禁用缓存,则为 true;否则为 false。true if caching is disabled on the local computer; otherwise, false.
- 属性
注解
如果在任何配置文件中将此配置特性设置为,则将 true 全局禁用缓存,并忽略所有其他与缓存相关的设置。If this configuration attribute is set to true in any configuration file, caching is disabled globally, and all other cache related settings are ignored. 此外,不能以编程方式启用缓存。In addition, caching cannot be enabled programmatically.