IFormatter.Deserialize(Stream) Metodo

Definizione

Attenzione

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

Deserializza i dati del flusso indicato e ricostituisce il grafico degli oggetti.

public:
 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 object Deserialize (System.IO.Stream serializationStream);
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}")>]
abstract member Deserialize : System.IO.Stream -> obj
abstract member Deserialize : System.IO.Stream -> obj
Public Function Deserialize (serializationStream As Stream) As Object

Parametri

serializationStream
Stream

Flusso che contiene i dati da deserializzare.

Restituisce

Object

Oggetto di primo livello del grafico deserializzato.

Attributi

Commenti

Il Deserialize metodo legge le informazioni del grafico dal flusso e ricostruisce un clone del grafico originale. La topologia del grafico viene mantenuta.

Il processo di deserializzazione alloca un oggetto vuoto del tipo appropriato e ripopola i relativi campi dai dati trasmessi nel serializationStream flusso. È importante notare che nessun costruttore viene mai chiamato sull'oggetto durante la deserializzazione.

Si applica a

Vedi anche