Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

HttpCachePolicyElement.PolicyLevel Property

Gets or sets HTTP caching behavior for the local machine.

Namespace:  System.Net.Configuration
Assembly:  System (in System.dll)

[ConfigurationPropertyAttribute("policyLevel", IsRequired = true, DefaultValue = HttpRequestCacheLevel.Default)]
public HttpRequestCacheLevel PolicyLevel { get; set; }

Property Value

Type: System.Net.Cache.HttpRequestCacheLevel
A HttpRequestCacheLevel value that specifies the cache behavior.

Applications typically use Default as their cache policy level. The CachePolicy property, if not null, determines the cache policy in effect for a request.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft