IStateManager.TrackViewState Método

Definición

Cuando se implementa mediante una clase, se indica al control de servidor que realice un seguimiento de los cambios del estado de vista.When implemented by a class, instructs the server control to track changes to its view state.

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

Ejemplos

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

Comentarios

Después de llamar a este método en un control de servidor, IsTrackingViewState la propiedad devolverá. trueAfter this method has been called on a server control, the IsTrackingViewState property will return true.

Se aplica a

Consulte también: