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
)
public static SessionStateItemCollection Deserialize (
	BinaryReader reader
)
public static function Deserialize (
	reader : BinaryReader
) : SessionStateItemCollection
Not applicable.

Parameters

reader

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

Return Value

A SessionStateItemCollection collection populated with the contents from a storage location that is written to using the Serialize method.

Exception typeCondition

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 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: