System.Web.UI.ObjectStateFormatter.Deserialize Method

Deserializes an object state graph from its binary-serialized form that is contained in the specified System.IO.Stream object.

Syntax

public object Deserialize (System.IO.Stream inputStream)

Parameters

inputStream
A System.IO.Stream that the System.Web.UI.ObjectStateFormatter deserializes into an initialized object.

Returns

An object that represents a deserialized object state graph.

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.Deserialize(System.IO.Stream) method is used to restore an object state graph stored in a System.IO.Stream, such as a System.IO.FileStream.

Note:

Calling this method with untrusted data is a security risk. Call this method only with trusted data. For more information, see tp://go.microsoft.com/fwlink/?LinkId=330378.

Requirements

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