OutputCacheParameters.VaryByCustom 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會取得一個自訂字串清單,輸出快取用來改變快取條目。
public:
property System::String ^ VaryByCustom { System::String ^ get(); void set(System::String ^ value); };
public string VaryByCustom { get; set; }
member this.VaryByCustom : string with get, set
Public Property VaryByCustom As String
屬性值
自訂弦的清單。
備註
如果你為此屬性指定「browser」,快取條目會依瀏覽器類型和主要版本號而有所不同。 如果輸入自訂字串,你必須覆寫應用程式 Global.asax 檔案中的該 HttpApplication.GetVaryByCustomString 方法。