HttpRequestCachePolicy Constructor (HttpRequestCacheLevel)
.NET Framework (current version)
Initializes a new instance of the HttpRequestCachePolicy class using the specified cache policy.
Assembly: System (in System.dll)
Parameters
- level
-
Type:
System.Net.Cache::HttpRequestCacheLevel
An HttpRequestCacheLevel value.
This constructor initializes the Level property to level.
The HttpRequestCacheLevel value controls whether caching is enabled, and when the cache can be used. For additional information, see the HttpRequestCacheLevel documentation.
The following code example demonstrates creating a cache policy that allows resources found in the cache to be used from the cache.
.NET Framework
Available since 2.0
Available since 2.0
Show: