HttpResponseWrapper.AddCacheDependency(CacheDependency[]) 方法

定义

在派生类中替代时,将缓存依赖项与响应关联,这些依赖项使响应可以在进行缓存且指定依赖项更改的时候失效。

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

参数

dependencies
CacheDependency[]

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

适用于