System.Web.SessionState.SessionStateItemCollection.Serialize Method

Writes the contents of the collection to a System.IO.BinaryWriter.

Syntax

public void Serialize (System.IO.BinaryWriter writer)

Parameters

writer
The System.IO.BinaryWriter used to write the serialized collection to a stream or encoded string.

Remarks

The SessionStateItemCollection.Serialize(System.IO.BinaryWriter) method can be used to write the contents of a System.Web.SessionState.SessionStateItemCollection collection to the session store.

To retrieve a serialized System.Web.SessionState.SessionStateItemCollection object from the session store, use the SessionStateItemCollection.Deserialize(System.IO.BinaryReader) method.

Requirements

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