IFormatter.Deserialize(Stream) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deserializes the data on the provided stream and reconstitutes the graph of objects.
public:
System::Object ^ Deserialize(System::IO::Stream ^ serializationStream);
public object Deserialize(System.IO.Stream serializationStream);
abstract member Deserialize : System.IO.Stream -> obj
Public Function Deserialize (serializationStream As Stream) As Object
Parameters
- serializationStream
- Stream
The stream that contains the data to deserialize.
Returns
The top object of the deserialized graph.
Remarks
The Deserialize method reads graph information from the stream and reconstructs a clone of the original graph. The topology of the graph is preserved.
The deserialization process allocates an empty object of the appropriate type and repopulates its fields from the data transmitted in the serializationStream stream. It is important to note that no constructor is ever called on the object during deserialization.