System.Net.Cache 命名空间

System.Net.Cache 命名空间定义类型和枚举,这些类型和枚举用于为使用 WebRequestHttpWebRequest 类获得的资源定义缓存策略。 The System.Net.Cache namespace defines the types and enumerations used to define cache policies for resources obtained using the WebRequest and HttpWebRequest classes.

HttpRequestCachePolicy

为通过使用 HttpWebRequest 对象获取的资源定义应用程序的缓存要求。Defines an application's caching requirements for resources obtained by using HttpWebRequest objects.

RequestCachePolicy

为通过使用 WebRequest 对象获取的资源定义应用程序的缓存要求。Defines an application's caching requirements for resources obtained by using WebRequest objects.

枚举

HttpCacheAgeControl

指定时间值的含义,这些时间值控制使用 HttpWebRequest 对象获取的资源的缓存行为。Specifies the meaning of time values that control caching behavior for resources obtained using HttpWebRequest objects.

HttpRequestCacheLevel

为使用超文本传输协议 (HTTP) 获取的资源指定缓存行为。Specifies caching behavior for resources obtained using the Hypertext Transfer protocol (HTTP).

RequestCacheLevel

为使用 WebRequest 及其派生类获取的资源指定缓存行为。Specifies caching behavior for resources obtained using WebRequest and its derived classes.