Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
StateItemとは何? わかりやすく解説 Weblio辞書
[go: Go Back, main page]

StateItemとは? わかりやすく解説

StateItem クラス

ビューステート情報複数Web 要求間で永続化されている場合に、StateBag クラス保存されている項目を表します。このクラス継承できません。

名前空間: System.Web.UI
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public NotInheritable Class
 StateItem
public sealed class StateItem
public final class StateItem
解説解説
使用例使用例

StateItem クラスValue プロパティIsDirty プロパティ使用してシンプルなカスタム ASP.NET サーバー コントロール クラス (FirstCustomControl) の状態を保存する方法次のコード例示しますページサーバーポストされると、IsDirty プロパティによって、項目が変更されたかどうかがチェックされます。この状態の値は、Value プロパティから取得され表示されます。

    ' Create a function that iterates through the view-state
    ' values stored for this class and returns the
    ' results as a string.
    Public Function EnumerateViewState() As
 String
        Dim keyName, keyValue As String
        Dim result As String
 = [String].Empty
        Dim myStateItem As StateItem
        Dim myDictionaryEnumerator As IDictionaryEnumerator
 = _viewstate.GetEnumerator()
        While myDictionaryEnumerator.MoveNext()
            keyName = CStr(myDictionaryEnumerator.Key)
            myStateItem = CType(myDictionaryEnumerator.Value, StateItem)
            keyValue = CStr(myStateItem.Value)
            result = result + "<br>ViewState["
 + keyName + "] = " + keyValue
        End While
        Return result
    End Function 'EnumerateViewState
End Class 'MyItem 
// Create a function that iterates through the view-state
// values stored for this class and returns the
// results as a string.
public string EnumerateViewState()
{
    string keyName, keyValue;
    string result = String.Empty;
    StateItem myStateItem;
    IDictionaryEnumerator myDictionaryEnumerator = _viewstate.GetEnumerator();
    while (myDictionaryEnumerator.MoveNext())
    {
        keyName = (string)myDictionaryEnumerator.Key;
        myStateItem = (StateItem)myDictionaryEnumerator.Value;
        keyValue = (string)myStateItem.Value;
        result = result + "<br>ViewState[" + keyName + "] =
 " + keyValue;
    }
    return result;
}
// Create a function that iterates through the view-state
// values stored for this class and returns the
// results as a string.
public String EnumerateViewState()
{
    String keyName, keyValue;
    String result = "";
    StateItem myStateItem;
    IDictionaryEnumerator myDictionaryEnumerator = 
        _viewState.GetEnumerator();
    while (myDictionaryEnumerator.MoveNext()) {
        keyName = (String)myDictionaryEnumerator.get_Key();
        myStateItem = (StateItem) myDictionaryEnumerator.get_Value();
        keyValue = (String)myStateItem.get_Value();
        result = result + "<br>ViewState[" + keyName + "] =
 " + keyValue;
    }
    return result;
} //EnumerateViewState
継承階層継承階層
System.Object
  System.Web.UI.StateItem
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

StateItem プロパティ


パブリック プロパティパブリック プロパティ

  名前 説明
パブリック プロパティ IsDirty StateItem オブジェクト変更されたかどうかを示す値を取得または設定します
パブリック プロパティ Value StateBag オブジェクト格納されている StateItem オブジェクトの値を取得または設定します
参照参照

関連項目

StateItem クラス
System.Web.UI 名前空間
StateBag クラス
SaveViewState

その他の技術情報

ASP.NET Web サーバー コントロール
ASP.NET状態管理

StateItem メソッド


StateItem メンバ

ビューステート情報複数Web 要求間で永続化されている場合に、StateBag クラス保存されている項目を表します。このクラス継承できません。

StateItem データ型公開されるメンバを以下の表に示します


パブリック プロパティパブリック プロパティ
  名前 説明
パブリック プロパティ IsDirty StateItem オブジェクト変更されたかどうかを示す値を取得または設定します
パブリック プロパティ Value StateBag オブジェクト格納されている StateItem オブジェクトの値を取得または設定します
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

StateItem クラス
System.Web.UI 名前空間
StateBag クラス
SaveViewState

その他の技術情報

ASP.NET Web サーバー コントロール
ASP.NET状態管理



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「StateItem」の関連用語

StateItemのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



StateItemのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS