SessionStateItemCollection.Deserialize メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SessionStateItemCollection.Deserialize メソッドの意味・解説 

SessionStateItemCollection.Deserialize メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

Serialize メソッド使用して書き込まれ保存場所から SessionStateItemCollection コレクション作成します

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

Public Shared Function Deserialize
 ( _
    reader As BinaryReader _
) As SessionStateItemCollection
Dim reader As BinaryReader
Dim returnValue As SessionStateItemCollection

returnValue = SessionStateItemCollection.Deserialize(reader)
public static SessionStateItemCollection Deserialize
 (
    BinaryReader reader
)
public:
static SessionStateItemCollection^ Deserialize (
    BinaryReader^ reader
)
public static SessionStateItemCollection Deserialize
 (
    BinaryReader reader
)
public static function Deserialize
 (
    reader : BinaryReader
) : SessionStateItemCollection

パラメータ

reader

ストリームまたはエンコードされた文字列からシリアル化されたコレクション読み出すために使用する BinaryReader。

戻り値
Serialize メソッド使用して書き込まれ保存場所内容を含む SessionStateItemCollection コレクション

解説解説

Deserialize メソッド使用すると、セッション ストアから SessionStateItemCollection コレクション内容読み取ることができます

SessionStateItemCollection オブジェクト内容セッション ストア書き込むには、Serialize メソッド使用します

使用例使用例

Serialize メソッド使用して作成したファイルかSessionStateItemCollection コレクション作成するコード例次に示します

Dim reader As System.IO.BinaryReader = New
 System.IO.BinaryReader( _
  System.IO.File.Open(Server.MapPath("session_collection.bin"),
 System.IO.FileMode.Open))

Dim sessionItems As SessionStateItemCollection
 = SessionStateItemCollection.Deserialize(reader)

For I As Integer = 0 To
 sessionItems.Count - 1
  Response.Write("sessionItems(" & i & ")
 = " & sessionItems(i).ToString() & "<BR>")
Next
System.IO.BinaryReader reader = new System.IO.BinaryReader(
  System.IO.File.Open(Server.MapPath("session_collection.bin"), System.IO.FileMode.Open));

SessionStateItemCollection sessionItems = SessionStateItemCollection.Deserialize(reader);

for (int i = 0; i < sessionItems.Count;
 i++)
  Response.Write("sessionItems[" + i + "] = " + sessionItems[i].ToString()
 + "<BR>");
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SessionStateItemCollection クラス
SessionStateItemCollection メンバ
System.Web.SessionState 名前空間
その他の技術情報
ASP.NETセッション状態



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

辞書ショートカット

すべての辞書の索引

SessionStateItemCollection.Deserialize メソッドのお隣キーワード
検索ランキング

   

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



SessionStateItemCollection.Deserialize メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS