NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HttpCacheVary.UserLanguage

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);

Property Value

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.

Example

[Visual Basic]
<%
'This example performs some action only if the UserLanguage
property
'is True.
If Response.Cache.Vary.UserLanguage = True Then
   ...
End If
%>

See Also

HttpCacheVary Class | HttpCacheVary Members | System.Web Namespace