Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetMaxAge Method

HttpCachePolicyBase.SetMaxAge Method

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.

ExceptionCondition
NotImplementedException

Always.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5 SP1
Show:
© 2015 Microsoft