HttpCachePolicyBase.SetMaxAge Method (TimeSpan)

 

When overridden in a derived class, sets the Cache-Control: max-age HTTP header to the specified time span.

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

public virtual void SetMaxAge(
	TimeSpan delta
)

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
Return to top
Show: