HttpCachePolicyWrapper.SetCacheability Method (HttpCacheability, String)
.NET Framework (current version)
Sets the Cache-Control header to the specified HttpCacheability value and appends an extension to the directive.
Assembly: System.Web (in System.Web.dll)
Public Overrides Sub SetCacheability ( cacheability As HttpCacheability, field As String )
Parameters
- cacheability
-
Type:
System.Web.HttpCacheability
The HttpCacheability enumeration value to set the header to.
- field
-
Type:
System.String
The cache-control extension to add to the header.
| Exception | Condition |
|---|---|
| ArgumentNullException | field is null. |
| ArgumentException |
.NET Framework
Available since 3.5
Available since 3.5
Show: