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 枚举值。

例外

适用于