HttpResponseBase.AddCacheItemDependency(String) 方法

定義

讓快取回應的有效性取決於快取中的指定項目。Makes the validity of a cached response dependent on the specified item in the cache.

public:
 virtual void AddCacheItemDependency(System::String ^ cacheKey);
public virtual void AddCacheItemDependency (string cacheKey);
abstract member AddCacheItemDependency : string -> unit
override this.AddCacheItemDependency : string -> unit
Public Overridable Sub AddCacheItemDependency (cacheKey As String)

參數

cacheKey
String

項目的索引鍵,為快取回應所依存。The key of the item that the cached response is dependent on.

例外狀況

永遠。Always.

適用於