DataPagerField.TrackViewState 方法

定義

DataPagerField 追蹤其檢視狀態變更,以將變更儲存在控制項的 ViewState 物件中,並在相同頁面的其他要求之間保存。Causes the DataPagerField object to track changes to its view state so that they can be stored in the control's ViewState property and persisted across requests for the same page.

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

實作

備註

true TrackViewState ViewState方法會在內部IsTrackingViewState將屬性設定為, 並叫用物件的方法。 TrackViewStateThe TrackViewState method internally sets the IsTrackingViewState property to true and invokes the TrackViewState method for the ViewState object.

適用於

另請參閱