IStateManager.IsTrackingViewState 属性

定义

当由类实现时,获取一个值,通过该值指示服务器控件是否正在跟踪其视图状态更改。

public:
 property bool IsTrackingViewState { bool get(); };
public bool IsTrackingViewState { get; }
member this.IsTrackingViewState : bool
Public ReadOnly Property IsTrackingViewState As Boolean

属性值

如果服务器控件正在跟踪其视图状态更改,则为 true;否则为 false

示例

// 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;
    }
}
' 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

适用于

另请参阅