RequestCachingSection.DefaultHttpCachePolicy 属性

定义

获取本地计算机的默认缓存行为。Gets the default caching behavior for the local computer.

public:
 property System::Net::Configuration::HttpCachePolicyElement ^ DefaultHttpCachePolicy { System::Net::Configuration::HttpCachePolicyElement ^ get(); };
[System.Configuration.ConfigurationProperty("defaultHttpCachePolicy")]
public System.Net.Configuration.HttpCachePolicyElement DefaultHttpCachePolicy { get; }
[<System.Configuration.ConfigurationProperty("defaultHttpCachePolicy")>]
member this.DefaultHttpCachePolicy : System.Net.Configuration.HttpCachePolicyElement
Public ReadOnly Property DefaultHttpCachePolicy As HttpCachePolicyElement

属性值

HttpCachePolicyElement

一个定义默认缓存策略的 HttpCachePolicyElementA HttpCachePolicyElement that defines the default cache policy.

属性

注解

除非将 DisableAllCaching 属性设置为 true ,否则此属性返回的策略会重写属性中设置的策略 DefaultPolicyLevelUnless the DisableAllCaching property is set to true, the policy returned by this property overrides the policy set in the DefaultPolicyLevel property.

适用于