This documentation is archived and is not being maintained.

IStateManager.IsTrackingViewState Property

When implemented by a class, gets a value indicating whether a server control is tracking its view state changes.

[Visual Basic]
ReadOnly Property IsTrackingViewState As Boolean
[C#]
bool IsTrackingViewState {get;}
[C++]
__property bool get_IsTrackingViewState();
[JScript]
function get IsTrackingViewState() : Boolean;

Property Value

true if a server control is tracking its view state changes; otherwise, false.

Example

[Visual Basic] 
' Implement the IsTrackingViewState method for this class 
' by calling the IsTrackingViewState method of the class's
' private _viewstate property. 

ReadOnly Property IsTrackingViewState() As Boolean Implements IStateManager.IsTrackingViewState
   Get
      Return CType(_viewstate, IStateManager).IsTrackingViewState
   End Get
End Property


[C#] 
// Implement the IsTrackingViewState method for this class 
// by calling the IsTrackingViewState method of the class's
// private _viewstate property. 
bool IStateManager.IsTrackingViewState
{
   get
   {
      return ((IStateManager)_viewstate).IsTrackingViewState;
   }
}

[C++] 
// Implement the IsTrackingViewState method for this class
// by calling the IsTrackingViewState method of the class's
// private _viewstate property.
__property bool IStateManager::get_IsTrackingViewState() {
   return (dynamic_cast<IStateManager*>(_viewstate))->IsTrackingViewState;
}

[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button Language Filter in the upper-left corner of the page.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

IStateManager Interface | IStateManager Members | System.Web.UI Namespace | Introduction to Web Forms State Management | StateBag | StateItem

Show: