共用方式為


CodeDomSerializer.DeserializeStatementToInstance 方法

定義

還原序列化陳述式。

protected:
 System::Object ^ DeserializeStatementToInstance(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeStatement ^ statement);
protected object DeserializeStatementToInstance (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatement statement);
protected object? DeserializeStatementToInstance (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatement statement);
member this.DeserializeStatementToInstance : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeStatement -> obj
Protected Function DeserializeStatementToInstance (manager As IDesignerSerializationManager, statement As CodeStatement) As Object

參數

manager
IDesignerSerializationManager

用於序列化的序列化管理員。

statement
CodeStatement

要還原序列化的陳述式。

傳回

statement 還原序列化之後所得到的物件執行個體。

備註

DeserializeStatementToInstance相當於呼叫 DeserializeStatement,不同之處在於,如果產生的語句是變數 assign 語句、具有 init 表達式的變數宣告或字段指派語句,則會傳回物件實例。

適用於