Formatter.Deserialize(Stream) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 的最上層物件。
實作
- 屬性
給實施者的注意事項
您必須在衍生類別中實作這個方法。