ControlCachePolicy.Cached Property

 

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

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

public bool Cached { get; set; }

Property Value

Type: System.Boolean

true if the user control's output is cached; otherwise, false.

Exception Condition
HttpException

The user control is not associated with a BasePartialCachingControl and is not cacheable.

- or -

The Cached property is set outside of the initialization and rendering stages of the control.

.NET Framework
Available since 2.0
Return to top
Show: