共用方式為


Formatter.Deserialize(Stream) 方法

定義

警告

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

當覆寫於衍生類別時,還原序列化建立時即附加至格式子的資料流,建立與原本序列化至資料流之 Graph 相同的物件 Graph。

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

參數

serializationStream
Stream

要還原序列化的資料流。

傳回

還原序列化物件 Graph 的最上層物件。

實作

屬性

給實施者的注意事項

您必須在衍生類別中實作這個方法。

適用於

另請參閱