HttpCachePolicyWrapper.SetSlidingExpiration Method (Boolean)

 

Sets cache expiration to absolute or sliding.

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

public override void SetSlidingExpiration(
	bool slide
)

Parameters

slide
Type: System.Boolean

true to set a sliding cache expiration, and false to set an absolute cache expiration.

.NET Framework
Available since 3.5
Return to top
Show: