ControlCachePolicy.SupportsCaching Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Show: