System.Web.SessionState.SessionStateItemCollection.Deserialize Method

Creates a System.Web.SessionState.SessionStateItemCollection collection from a storage location that is written to using the SessionStateItemCollection.Serialize(System.IO.BinaryWriter) method.

Syntax

public static SessionStateItemCollection Deserialize (System.IO.BinaryReader reader)

Parameters

reader
The System.IO.BinaryReader used to read the serialized collection from a stream or encoded string.

Returns

A System.Web.SessionState.SessionStateItemCollection collection populated with the contents from a storage location that is written to using the SessionStateItemCollection.Serialize(System.IO.BinaryWriter) method.

Remarks

The SessionStateItemCollection.Deserialize(System.IO.BinaryReader) method can be used to read the contents of a System.Web.SessionState.SessionStateItemCollection collection from the session store.

To write the contents of a System.Web.SessionState.SessionStateItemCollection object to the session store, use the SessionStateItemCollection.Serialize(System.IO.BinaryWriter) method.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0