Export (0) Print
Expand All

OutputCacheProfile.VaryByContentEncoding Property

Updated: April 2009

Gets or sets the semicolon-delimited set of content encodings to be cached.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

'Declaration
<ConfigurationPropertyAttribute("varyByContentEncoding")> _
Public Property VaryByContentEncoding As String
'Usage
Dim instance As OutputCacheProfile 
Dim value As String 

value = instance.VaryByContentEncoding

instance.VaryByContentEncoding = value

Property Value

Type: System.String
The list of content encodings.

The VaryByContentEncoding settings are the same ones used by the VaryByContentEncoding attribute of the @ OutputCache directive.

VaryByContentEncoding is introduced in the .NET Framework version 3.5. For more information, see .NET Framework 3.5 Architecture.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1, 3.0 SP1, 2.0 SP1

Date

History

Reason

April 2009

Changed comma-delimited to semicolon-delimited.

Content bug fix.

Community Additions

ADD
Show:
© 2014 Microsoft