使用英语阅读

通过


Formatter.Deserialize(Stream) 方法

定义

注意

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

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

[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);

参数

serializationStream
Stream

要反序列化的流。

返回

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

实现

属性

实施者说明

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

适用于

产品 版本 (已过时)
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 8 (package-provided), 8, 9 (package-provided), 9 (5, 6, 7)
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

另请参阅