SupportsCaching Property

ControlCachePolicy.SupportsCaching Property


Gets a value indicating whether the user control supports caching.

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

public bool SupportsCaching { get; }

Property Value

Type: System.Boolean

true if the user control supports caching; otherwise, false.

A user control supports caching if it is associated with a BasePartialCachingControl instance, which signals that either an directive was parsed by the ASP.NET parser or the user control was decorated with a PartialCachingAttribute attribute.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft