Formatter.Deserialize(Stream) 方法

定义

注意

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

当在派生类中重写时,将连接到格式化程序的流反序列化(在创建该流时),以创建与最初序列化为该流的图形相同的对象图形。

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

要反序列化的流。

返回

对象的反序列化图形的顶级对象。

实现

属性

实施者说明

必须在派生类中实现此方法。

适用于

另请参阅