UpdatePanel.RequiresUpdate 属性

定义

获取一个值,该值指示是否更新 UpdatePanel 控件的内容。Gets a value that indicates whether the content of the UpdatePanel control will be updated.

protected public:
 virtual property bool RequiresUpdate { bool get(); };
protected internal virtual bool RequiresUpdate { get; }
member this.RequiresUpdate : bool
Protected Friend Overridable ReadOnly Property RequiresUpdate As Boolean

属性值

Boolean

如果更新 UpdatePanel 控件的内容,则为 true;否则为 falsetrue if the UpdatePanel control's content will be updated; otherwise, false.

注解

默认情况下, RequiresUpdate true 如果 Update 显式调用了方法,或者如果 UpdateMode 属性设置为,则属性将返回 AlwaysBy default, the RequiresUpdate property returns true if the Update method was explicitly called or if the UpdateMode property is set to Always.

此属性旨在供需要扩展控件的控件开发人员使用 UpdatePanelThis property is intended for use by control developers who want to extend the UpdatePanel control. 例如,在派生类中,你可以提供其他逻辑来确定是否 UpdatePanel 应更新控件。For example, in derived classes, you might provide additional logic to determine whether an UpdatePanel control should be updated.

适用于