Bagikan melalui


IStateManager.TrackViewState Metode

Definisi

Saat diimplementasikan oleh kelas, menginstruksikan kontrol server untuk melacak perubahan pada status tampilannya.

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

Contoh

// 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

Keterangan

Setelah metode ini dipanggil pada kontrol server, IsTrackingViewState properti akan mengembalikan true.

Berlaku untuk

Lihat juga