HttpCachePolicy::SetCacheability Method (HttpCacheability)
.NET Framework (current version)
Sets the Cache-Control header to one of the values of HttpCacheability.
Assembly: System.Web (in System.Web.dll)
Parameters
- cacheability
-
Type:
System.Web::HttpCacheability
An HttpCacheability enumeration value.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | cacheability is not one of the enumeration values. |
SetCacheability is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.
.NET Framework
Available since 1.1
Available since 1.1
Show: