This documentation is archived and is not being maintained.

SessionStateItemCollection::Deserialize Method

Creates a SessionStateItemCollection collection from a storage location that is written to using the Serialize method.

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

public:
static SessionStateItemCollection^ Deserialize(
	BinaryReader^ reader
)

Parameters

reader
Type: System.IO::BinaryReader

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

Return Value

Type: System.Web.SessionState::SessionStateItemCollection
A SessionStateItemCollection collection populated with the contents from a storage location that is written to using the Serialize method.

ExceptionCondition
HttpException

The session state information is invalid or corrupted

The Deserialize method can be used to read the contents of a SessionStateItemCollection collection from the session store.

To write the contents of a SessionStateItemCollection object to the session store, use the Serialize method.

The following code example creates a SessionStateItemCollection collection from a file that was created using the Serialize method.

No code example is currently available or this language may not be supported.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: