System.Web.UI.ControlCachePolicy Members

The members of System.Web.UI.ControlCachePolicy are listed below.

See Also: Inherited members from System.Object

Public Properties

Cachedbool.

Gets or sets a value indicating whether fragment caching is enabled for the user control.

DependencySystem.Web.Caching.CacheDependency.

Gets or sets an instance of the System.Web.Caching.CacheDependency class associated with the cached user control output.

DurationTimeSpan.

Gets or sets the amount of time that cached items are to remain in the output cache.

[read-only]
SupportsCachingbool.

Gets a value indicating whether the user control supports caching.

VaryByControlstring.

Gets or sets a list of control identifiers to vary the cached output by.

[read-only]
VaryByParamsSystem.Web.HttpCacheVaryByParams.

Gets or sets a list of GET or POST parameter names to vary the cached output by.

Public Methods

SetExpires(DateTime)

Instructs the System.Web.UI.BasePartialCachingControl control that wraps the user control to expire the cache entry at the specified date and time.

SetSlidingExpiration(bool)

Instructs the System.Web.UI.BasePartialCachingControl control that wraps the user control to set the user control's cache entry to use sliding or absolute expiration.

SetVaryByCustom(string)

Sets a list of custom strings that the output cache will use to vary the user control.