System.Net.Cache.RequestCachePolicy Class

Defines an application's caching requirements for resources obtained by using System.Net.WebRequest objects.

See Also: RequestCachePolicy Members

Syntax

public class RequestCachePolicy

Remarks

You can specify a default cache policy for your application by using the System.Net.HttpWebRequest.DefaultCachePolicy property or the application or machine configuration files. For more information, see RequestCaching Element (Network Settings).

You can specify the cache policy for an individual request by using the System.Net.WebRequest.CachePolicy property.

Caching for Web services is not supported.

Requirements

Namespace: System.Net.Cache
Assembly: System (in System.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0