System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize Method

Deserializes the specified stream into an object graph.

Syntax

public object Deserialize (System.IO.Stream serializationStream)

Parameters

serializationStream
The stream from which to deserialize the object graph.

Returns

The top (root) of the object graph.

Remarks

For successful deserialization, the current position in the stream must be at the beginning of the object graph.

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.Runtime.Serialization.Formatters.Binary
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0