共用方式為


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 物件。

例外狀況

適用於