System.Web.HttpCachePolicy.SetCacheability Method

Sets the Cache-Control header to one of the values of System.Web.HttpCacheability.

Syntax

public void SetCacheability (HttpCacheability cacheability)

Parameters

cacheability
An System.Web.HttpCacheability enumeration value.

Remarks

HttpCachePolicy.SetCacheability(HttpCacheability) is introduced in the .NET Framework version 3.5. For more information, see The .NET Framework 3.5 Architecture.

Requirements

Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0