Instructs the System.Web.UI.BasePartialCachingControl control that wraps the user control to expire the cache entry at the specified date and time.
- expirationTime
- A DateTime after which the cached entry expires.
Use the ControlCachePolicy.SetExpires(DateTime) and ControlCachePolicy.SetSlidingExpiration(bool) methods (passing true) to instruct the System.Web.UI.BasePartialCachingControl control that wraps the user control to use a sliding expiration caching policy instead of an absolute expiration policy. Use the ControlCachePolicy.SetExpires(DateTime) method and the ControlCachePolicy.SetSlidingExpiration(bool) method (passing false) to specify an absolute expiration policy.