SetProxyMaxAge Method

HttpCachePolicyWrapper.SetProxyMaxAge Method (TimeSpan)

.NET Framework (current version)
 

Sets the Cache-Control: s-maxage HTTP header to the specified time span.

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

public override void SetProxyMaxAge(
	TimeSpan delta
)

Parameters

delta
Type: System.TimeSpan

The time span to set the Cache-Control: s-maxage header to.

Exception Condition
ArgumentOutOfRangeException

delta is less than 0.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft