Επεξεργασία

Κοινή χρήση μέσω


Formatter.Deserialize(Stream) Method

Definition

Caution

BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.

When overridden in a derived class, deserializes the stream attached to the formatter when it was created, creating a graph of objects identical to the graph originally serialized into that stream.

public:
 abstract System::Object ^ Deserialize(System::IO::Stream ^ serializationStream);
[System.Obsolete("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public abstract object Deserialize (System.IO.Stream serializationStream);
public abstract object Deserialize (System.IO.Stream serializationStream);
[<System.Obsolete("BinaryFormatter serialization is obsolete and should not be used. See https://aka.ms/binaryformatter for more information.", DiagnosticId="SYSLIB0011", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member Deserialize : System.IO.Stream -> obj
abstract member Deserialize : System.IO.Stream -> obj
Public MustOverride Function Deserialize (serializationStream As Stream) As Object

Parameters

serializationStream
Stream

The stream to deserialize.

Returns

The top object of the deserialized graph of objects.

Implements

Attributes

Notes to Implementers

You must implement this method in a derived class.

Applies to

See also