Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
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 @ OutputCache directive was parsed by the ASP.NET parser or the user control was decorated with a PartialCachingAttribute attribute.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft