共用方式為


CodeDomSerializer.Deserialize(IDesignerSerializationManager, Object) 方法

定義

將指定序列化的 CodeDOM 物件還原序列化為物件。

public:
 abstract System::Object ^ Deserialize(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ codeObject);
public:
 virtual System::Object ^ Deserialize(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ codeObject);
public abstract object Deserialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object codeObject);
public virtual object Deserialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object codeObject);
public virtual object? Deserialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object codeObject);
abstract member Deserialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj -> obj
abstract member Deserialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj -> obj
override this.Deserialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj -> obj
Public MustOverride Function Deserialize (manager As IDesignerSerializationManager, codeObject As Object) As Object
Public Overridable Function Deserialize (manager As IDesignerSerializationManager, codeObject As Object) As Object

參數

manager
IDesignerSerializationManager

在還原序列化過程中所使用的序列化管理員介面。

codeObject
Object

要還原序列化的序列化 CodeDOM 物件。

傳回

還原序列化的 CodeDOM 物件。

例外狀況

managercodeObjectnull

codeObject 是不支援的程式碼項目。

備註

這個方法會使用串行化管理員來建立物件並解析數據類型。 會傳回物件圖形的根目錄。

適用於