HttpResponseBase.AddCacheDependency(CacheDependency[]) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
加入快取相依性與回應的關聯,讓回應在快取後及指定的相依性變更時失效。
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 物件。