次の方法で共有


IStateManager.IsTrackingViewState プロパティ

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

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

プロパティ値

サーバー コントロールがビューステートの変化を追跡する場合は true 。それ以外の場合は false

使用例

 
' 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] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ

参照

IStateManager インターフェイス | IStateManager メンバ | System.Web.UI 名前空間 | Web フォームの状態管理の概要 | StateBag | StateItem