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

역직렬화할 데이터를 포함하는 스트림입니다.

반환

Object

역직렬화된 그래프의 최상위 개체입니다.

특성

설명

이 메서드는 Deserialize 스트림에서 그래프 정보를 읽고 원래 그래프의 복제본을 다시 생성합니다. 그래프의 토폴로지는 유지됩니다.

역직렬화 프로세스는 적절한 형식의 빈 개체를 할당하고 스트림에서 serializationStream 전송되는 데이터에서 해당 필드를 다시 채운다. 역직렬화 중에 개체에 대해 호출된 생성자가 없다는 점에 유의해야 합니다.

적용 대상

추가 정보