MemberCodeDomSerializer.Serialize 方法

定义

将给定值的给定成员说明符序列化为一个语句集合。

public:
 abstract void Serialize(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ value, System::ComponentModel::MemberDescriptor ^ descriptor, System::CodeDom::CodeStatementCollection ^ statements);
public abstract void Serialize (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object value, System.ComponentModel.MemberDescriptor descriptor, System.CodeDom.CodeStatementCollection statements);
abstract member Serialize : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj * System.ComponentModel.MemberDescriptor * System.CodeDom.CodeStatementCollection -> unit
Public MustOverride Sub Serialize (manager As IDesignerSerializationManager, value As Object, descriptor As MemberDescriptor, statements As CodeStatementCollection)

参数

manager
IDesignerSerializationManager

用于序列化的序列化管理器。

value
Object

成员被绑定到的对象。

descriptor
MemberDescriptor

要序列化的成员的说明符。

statements
CodeStatementCollection

descriptor 会被序列化为 CodeStatementCollection

注解

此方法实际上执行序列化。 序列化成员时,必要的语句将添加到语句集合中。

适用于

另请参阅