HttpRequestCachePolicy()

HttpRequestCachePolicy::HttpRequestCachePolicy() constructor

Constructs a new instance.

System::Net::Cache::HttpRequestCachePolicy::HttpRequestCachePolicy()

HttpRequestCachePolicy::HttpRequestCachePolicy(HttpRequestCacheLevel) constructor

Constructs a new instance.

System::Net::Cache::HttpRequestCachePolicy::HttpRequestCachePolicy(HttpRequestCacheLevel level)

Arguments

ParameterTypeDescription
levelHttpRequestCacheLevelThe caching behavior for resources.

HttpRequestCachePolicy::HttpRequestCachePolicy(HttpCacheAgeControl, TimeSpan) constructor

Constructs a new instance.

System::Net::Cache::HttpRequestCachePolicy::HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan ageOrFreshOrStale)

Arguments

ParameterTypeDescription
cacheAgeControlHttpCacheAgeControlControls the caching behavior for resources.
ageOrFreshOrStaleTimeSpanAn amount of time.

HttpRequestCachePolicy::HttpRequestCachePolicy(HttpCacheAgeControl, TimeSpan, TimeSpan) constructor

Constructs a new instance.

System::Net::Cache::HttpRequestCachePolicy::HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan maxAge, TimeSpan freshOrStale)

Arguments

ParameterTypeDescription
cacheAgeControlHttpCacheAgeControlControls the caching behavior for resources.
maxAgeTimeSpanThe max age permitted for resources.
freshOrStaleTimeSpanAn amount of time.

HttpRequestCachePolicy::HttpRequestCachePolicy(DateTime) constructor

Constructs a new instance.

System::Net::Cache::HttpRequestCachePolicy::HttpRequestCachePolicy(DateTime cacheSyncDate)

Arguments

ParameterTypeDescription
cacheSyncDateDateTimeThe time when resources stored in the cache must be revalidated.

HttpRequestCachePolicy::HttpRequestCachePolicy(HttpCacheAgeControl, TimeSpan, TimeSpan, DateTime) constructor

Constructs a new instance.

System::Net::Cache::HttpRequestCachePolicy::HttpRequestCachePolicy(HttpCacheAgeControl cacheAgeControl, TimeSpan maxAge, TimeSpan freshOrStale, DateTime cacheSyncDate)

Arguments

ParameterTypeDescription
cacheAgeControlHttpCacheAgeControlControls the caching behavior for resources.
maxAgeTimeSpanThe max age permitted for resources.
freshOrStaleTimeSpanAn amount of time.
cacheSyncDateDateTimeThe time when resources stored in the cache must be revalidated.

See Also