HttpCachePolicyBase::SetMaxAge Method (TimeSpan)
.NET Framework (current version)
When overridden in a derived class, sets the Cache-Control: max-age HTTP header to the specified time span.
Assembly: System.Web (in System.Web.dll)
Parameters
- delta
-
Type:
System::TimeSpan
The time span to set the Cache-Control: max-age header to.
| Exception | Condition |
|---|---|
| NotImplementedException | Always. |
.NET Framework
Available since 3.5
Available since 3.5
Show: