HttpResponseBase.AddCacheDependency(CacheDependency[]) 方法

定义

添加与响应关联的缓存依赖项,这些依赖项使响应可以在进行缓存和指定依赖项发生更改时失效。

public:
 virtual void AddCacheDependency(... cli::array <System::Web::Caching::CacheDependency ^> ^ dependencies);
public virtual void AddCacheDependency (params System.Web.Caching.CacheDependency[] dependencies);
abstract member AddCacheDependency : System.Web.Caching.CacheDependency[] -> unit
override this.AddCacheDependency : System.Web.Caching.CacheDependency[] -> unit
Public Overridable Sub AddCacheDependency (ParamArray dependencies As CacheDependency())

参数

dependencies
CacheDependency[]

要添加到应用程序依赖项列表的文件、缓存键或 CacheDependency 对象。

例外

适用于