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.UserAgent

Retrieves or assigns a Boolean value that indicates whether the cache should vary by user agent headers.

[Visual Basic]
Public Property UserAgent As Boolean
[C#]
public bool UserAgent {get; set;}
[C++]
public: __property bool get_UserAgent();
public: __property void set_UserAgent(bool);
[JScript]
public function get UserAgent() : Boolean;
public function set UserAgent(Boolean);

Property Value

The default value is false. When set to true, this property causes the UserAgent 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 UserAgent property
'is True.
If Response.Cache.Vary.UserAgent = True Then
   ...
End If
%>

See Also

HttpCacheVary Class | HttpCacheVary Members | System.Web Namespace