PageAdapter.CacheVaryByParams 屬性

定義

從 HTTP GET 和 POST 要求取得其他參數的清單,而且會根據此清單為附加此衍生頁面配置器的網頁變更快取。

public:
 virtual property System::Collections::Specialized::StringCollection ^ CacheVaryByParams { System::Collections::Specialized::StringCollection ^ get(); };
public virtual System.Collections.Specialized.StringCollection CacheVaryByParams { get; }
member this.CacheVaryByParams : System.Collections.Specialized.StringCollection
Public Overridable ReadOnly Property CacheVaryByParams As StringCollection

屬性值

IList,包含 GET 和 POST 參數的清單,否則為 null

備註

Web 上快取網頁的實體會根據其他因素,快取多個版本來快取要求參數。 例如,零售鏈結內每個商店位置的版本,可能會根據參數名稱 (來快取頁面,例如 StoreID ,) 。

針對特定瀏覽器,除了控制與目標無關快取的參數之外,可能還需要依 GET 或 POST 參數變更快取。 例如,可能需要針對不同的行動電話服務提供者快取不同版本的頁面。

給繼承者的注意事項

當您繼承自 PageAdapter 類別時,可以覆寫 CacheVaryByParams 屬性,以傳回其他 GET 或 POST 參數的清單,以控制目標特定的快取。 基 CacheVaryByParams 底方法會傳 null 回 。

適用於

另請參閱