CodeDomSerializer.Serialize(IDesignerSerializationManager, Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的物件序列化為 CodeDOM 物件。
public:
abstract System::Object ^ Serialize(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ value);
public:
virtual System::Object ^ Serialize(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ value);
public abstract object Serialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object value);
public virtual object Serialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object value);
public virtual object? Serialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object value);
abstract member Serialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj -> obj
abstract member Serialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj -> obj
override this.Serialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj -> obj
Public MustOverride Function Serialize (manager As IDesignerSerializationManager, value As Object) As Object
Public Overridable Function Serialize (manager As IDesignerSerializationManager, value As Object) As Object
參數
- manager
- IDesignerSerializationManager
要在序列化期間使用的序列化管理員。
- value
- Object
要序列化的物件。
傳回
CodeDOM 物件,表示已序列化的物件。
例外狀況
manager
或 value
為 null
。