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

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

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

Property Value

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

See Also

HttpCacheVary Class | HttpCacheVary Members | System.Web Namespace