HotSpot.TrackViewState 方法

定义

使 HotSpot 对象跟踪对其视图状态所做的更改,以便可以将这些更改存储在该对象的 StateBag 对象中。Causes the HotSpot object to track changes to its view state so they can be stored in the object's StateBag object. 通过 ViewState 属性可访问此对象。This object is accessible through the ViewState property.

protected:
 virtual void TrackViewState();
protected virtual void TrackViewState ();
abstract member TrackViewState : unit -> unit
override this.TrackViewState : unit -> unit
Protected Overridable Sub TrackViewState ()

注解

TrackViewState成员主要由控件开发人员从类派生自定义实现时使用 HotSpotThe TrackViewState member is used primarily by control developers when deriving a custom implementation from the HotSpot class.

当初始化对象时,ASP.NET 会自动调用此方法 HotSpotThis method is called automatically by ASP.NET when the HotSpot object is initialized.

适用于

另请参阅