IFormatter.Deserialize(Stream) IFormatter.Deserialize(Stream) IFormatter.Deserialize(Stream) IFormatter.Deserialize(Stream) Method

定義

還原序列化在提供的資料流上的資料,並重新組合物件 Graph。Deserializes the data on the provided stream and reconstitutes the graph of objects.

public:
 System::Object ^ Deserialize(System::IO::Stream ^ serializationStream);
public object Deserialize (System.IO.Stream serializationStream);
abstract member Deserialize : System.IO.Stream -> obj
Public Function Deserialize (serializationStream As Stream) As Object

參數

serializationStream
Stream Stream Stream Stream

資料流,包含要還原序列化的資料。The stream that contains the data to deserialize.

傳回

還原序列化 Graph 的最上層物件。The top object of the deserialized graph.

備註

Deserialize方法會從資料流程讀取圖形資訊, 並重建原始圖形的複本。The Deserialize method reads graph information from the stream and reconstructs a clone of the original graph. 會保留圖形的拓撲。The topology of the graph is preserved.

還原序列化程式會配置適當類型的空物件, 並從serializationStream資料流程中傳輸的資料中, 將其欄位進行填充。The deserialization process allocates an empty object of the appropriate type and repopulates its fields from the data transmitted in the serializationStream stream. 請務必注意, 在還原序列化期間, 物件上不會呼叫任何函數。It is important to note that no constructor is ever called on the object during deserialization.

適用於

另請參閱