共用方式為


HttpCachePolicyBase.SetRevalidation(HttpCacheRevalidation) 方法

定義

在衍生類別中覆寫時,會根據指定的列舉值,將 Cache-Control HTTP 標頭設定為 must-revalidateproxy-revalidate 指示詞。

public:
 virtual void SetRevalidation(System::Web::HttpCacheRevalidation revalidation);
public virtual void SetRevalidation (System.Web.HttpCacheRevalidation revalidation);
abstract member SetRevalidation : System.Web.HttpCacheRevalidation -> unit
override this.SetRevalidation : System.Web.HttpCacheRevalidation -> unit
Public Overridable Sub SetRevalidation (revalidation As HttpCacheRevalidation)

參數

revalidation
HttpCacheRevalidation

要設定 Cache-Control 標頭的目標 HttpCacheRevalidation 列舉值。

例外狀況

適用於