IFormatter.Deserialize(Stream) 方法

定义

注意

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

反序列化所提供流中的数据并重新组成对象图形。

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

参数

serializationStream
Stream

包含要反序列化的数据的流。

返回

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

属性

注解

方法 Deserialize 从流中读取图形信息,并重新构造原始图形的克隆。 将保留图形的拓扑。

反序列化过程分配适当类型的空对象,并从流中 serializationStream 传输的数据重新填充其字段。 请务必注意,在反序列化期间,不会对对象调用任何构造函数。

适用于

另请参阅