語言

OutputCacheParameters.VaryByCustom 屬性

定義

會取得一個自訂字串清單,輸出快取用來改變快取條目。

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 方法。

適用於

另請參閱