HttpCachePolicyBase.SetAllowResponseInBrowserHistory(Boolean) 方法

定義

當在派生類別中被覆寫時,會將回應置於瀏覽器歷史快取中,無論伺服器上設定為何 HttpCacheability

public:
 virtual void SetAllowResponseInBrowserHistory(bool allow);
public virtual void SetAllowResponseInBrowserHistory(bool allow);
abstract member SetAllowResponseInBrowserHistory : bool -> unit
override this.SetAllowResponseInBrowserHistory : bool -> unit
Public Overridable Sub SetAllowResponseInBrowserHistory (allow As Boolean)

參數

allow
Boolean

true 指示用戶端瀏覽器將回應儲存在瀏覽器歷史快取中;否則 false

例外狀況

適用於