Public Property VaryByCustom As String
Dim instance As OutputCacheParameters Dim value As String value = instance.VaryByCustom instance.VaryByCustom = value
public string VaryByCustom { get; set; }
public: property String^ VaryByCustom { String^ get (); void set (String^ value); }
/** @property */ public String get_VaryByCustom () /** @property */ public void set_VaryByCustom (String value)
public function get VaryByCustom () : String public function set VaryByCustom (value : String)
如果您為這個屬性指定 "browser",快取項目將根據瀏覽器類型和主要版本號碼而不同。如果自訂字串已輸入,則您必須在您應用程式的 Global.asax 檔中覆寫 HttpApplication.GetVaryByCustomString 方法。
Windows 98、 Windows 2000 SP4、 Windows Server 2003、 Windows XP Media Center Edition、 Windows XP Professional x64 Edition、 Windows XP SP2、 Windows XP Starter Edition
.NET Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱系統需求一節的內容。