ControlCachePolicy.SupportsCaching 属性

定义

获取一个值,该值指示用户控件是否支持缓存。

public:
 property bool SupportsCaching { bool get(); };
public bool SupportsCaching { get; }
member this.SupportsCaching : bool
Public ReadOnly Property SupportsCaching As Boolean

属性值

true 如果用户控件支持缓存,则为否则,为 false.

注解

如果用户控件与 BasePartialCachingControl 实例相关联,则用户控件支持缓存,该实例指示 @ OutputCache 指令由 ASP.NET 分析程序分析,或者用户控件使用 PartialCachingAttribute 属性修饰。

适用于

另请参阅