HttpCacheVaryByParams.IgnoreParams 屬性

定義

取得或設定值,指出 HTTP 回應是否依 GetPost 參數有所不同。

public:
 property bool IgnoreParams { bool get(); void set(bool value); };
public bool IgnoreParams { get; set; }
member this.IgnoreParams : bool with get, set
Public Property IgnoreParams As Boolean

屬性值

如果 HTTP 要求參數會被忽略,則為 true,否則為 false

備註

IgnoreParams將 屬性 true 設定為 相當於將資源的 @ OutputCache指示 VaryByParams 詞屬性設定為 「none」。

適用於