IFormatter.Deserialize(Stream) Methode

Definition

Achtung

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

Deserialisiert die Daten des bereitgestellten Datenstroms und stellt das Diagramm der Objekte neu.

public:
 System::Object ^ Deserialize(System::IO::Stream ^ serializationStream);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("BinaryFormatter serialization uses dynamic code generation, the type of objects being processed cannot be statically discovered.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")]
public 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 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}")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BinaryFormatter serialization is not trim compatible because the Type of objects being processed cannot be statically discovered.")]
public object Deserialize(System.IO.Stream serializationStream);
public object Deserialize(System.IO.Stream serializationStream);
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("BinaryFormatter serialization uses dynamic code generation, the type of objects being processed cannot be statically discovered.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BinaryFormatter serialization is not trim compatible because the type of objects being processed cannot be statically discovered.")>]
abstract member Deserialize : System.IO.Stream -> obj
[<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
[<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}")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("BinaryFormatter serialization is not trim compatible because the Type of objects being processed cannot be statically discovered.")>]
abstract member Deserialize : System.IO.Stream -> obj
abstract member Deserialize : System.IO.Stream -> obj
Public Function Deserialize (serializationStream As Stream) As Object

Parameter

serializationStream
Stream

Der Datenstrom, der die zu deserialisierenden Daten enthält.

Gibt zurück

Das oberste Objekt des deserialisierten Diagramms.

Attribute

Hinweise

Die Deserialize Methode liest Diagramminformationen aus dem Datenstrom und rekonstruiert einen Klon des ursprünglichen Diagramms. Die Topologie des Diagramms wird beibehalten.

Der Deserialisierungsprozess weist ein leeres Objekt des entsprechenden Typs zu und füllt seine Felder aus den im serializationStream Datenstrom übertragenen Daten erneut auf. Es ist wichtig zu beachten, dass während der Deserialisierung kein Konstruktor für das Objekt aufgerufen wird.

Gilt für:

Weitere Informationen