Retrieves or assigns a Boolean value that indicates whether the cache should vary by user language headers.
[Visual Basic] Public Property UserLanguage As Boolean [C#] public bool UserLanguage {get; set;} [C++] public: __property bool get_UserLanguage(); public: __property void set_UserLanguage(bool); [JScript] public function get UserLanguage() : Boolean; public function set UserLanguage(Boolean);
The default value is false. When set to true, this property causes the "UserLanguage" value to be included in the HTTP "Vary" header sent to the client browser.
[Visual Basic] <% 'This example performs some action only if the UserLanguage property 'is True. If Response.Cache.Vary.UserLanguage = True Then ... End If %>
HttpCacheVary Class | HttpCacheVary Members | System.Web Namespace