System.Web.UI.ObjectStateFormatter.Serialize Method

Serializes an object state graph to the specified System.IO.Stream object.

Syntax

public void Serialize (System.IO.Stream outputStream, object stateGraph)

Parameters

outputStream
A System.IO.Stream to which the System.Web.UI.ObjectStateFormatter serializes the state of the specified object.
stateGraph
The object to serialize.

Remarks

Any object state graph that is serialized with the erload:System.Web.UI.ObjectStateFormatter.Serialize method can be deserialized with the erload:System.Web.UI.ObjectStateFormatter.Deserialize method. The ObjectStateFormatter.Serialize(System.IO.Stream, object) method is used to serialize an object state graph to a binary System.IO.Stream object.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0