IStateManager.TrackViewState メソッド

定義

クラスによって実装された場合は、サーバー コントロールに対し、そのビューステートの変化を追跡するように指示します。

public:
 void TrackViewState();
public void TrackViewState ();
abstract member TrackViewState : unit -> unit
Public Sub TrackViewState ()

// Implement the TrackViewState method for this class by
// calling the TrackViewState method of the class's private
// _viewstate property.
void IStateManager.TrackViewState()
{
    ((IStateManager)_viewstate).TrackViewState();
}
' Implement the TrackViewState method for this class by
' calling the TrackViewState method of the class's private
' _viewstate property.
Sub TrackViewState() Implements IStateManager.TrackViewState
    CType(_viewstate, IStateManager).TrackViewState()
End Sub

注釈

サーバー コントロールでこのメソッドが呼び出されると、このプロパティは IsTrackingViewState .true

適用対象

こちらもご覧ください