Serializes an object state graph to the specified System.IO.Stream object.
- outputStream
- A System.IO.Stream to which the System.Web.UI.ObjectStateFormatter serializes the state of the specified object.
- stateGraph
- The object to serialize.
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.