HttpContext.Cache 属性

定义

获取当前应用程序域的 Cache 对象。Gets the Cache object for the current application domain.

public:
 property System::Web::Caching::Cache ^ Cache { System::Web::Caching::Cache ^ get(); };
public System.Web.Caching.Cache Cache { get; }
member this.Cache : System.Web.Caching.Cache
Public ReadOnly Property Cache As Cache

属性值

当前应用程序域的 CacheThe Cache for the current application domain.

注解

每个应用程序域都有一个 Cache 类的实例。There is one instance of the Cache class per application domain. 因此,Cache 属性返回的 Cache 对象是应用程序域中所有请求的 Cache 对象。As a result, the Cache object that is returned by the Cache property is the Cache object for all requests in the application domain.

适用于