ComponentSerializationService.SerializeMember 方法

定义

在给定对象上序列化给定成员。

public:
 abstract void SerializeMember(System::ComponentModel::Design::Serialization::SerializationStore ^ store, System::Object ^ owningObject, System::ComponentModel::MemberDescriptor ^ member);
public abstract void SerializeMember (System.ComponentModel.Design.Serialization.SerializationStore store, object owningObject, System.ComponentModel.MemberDescriptor member);
abstract member SerializeMember : System.ComponentModel.Design.Serialization.SerializationStore * obj * System.ComponentModel.MemberDescriptor -> unit
Public MustOverride Sub SerializeMember (store As SerializationStore, owningObject As Object, member As MemberDescriptor)

参数

store
SerializationStore

member 的状态将序列化到的 SerializationStore

owningObject
Object

在其上附加 member 的对象。

member
MemberDescriptor

MemberDescriptor 指定要序列化的成员。

例外

storevaluenull

store 已关闭,或 store 不是序列化存储区支持的类型。 使用由 CreateStore() 返回的存储区。

注解

SerializeMember可以为同一对象多次调用 方法,以在序列化存储中生成序列化成员的列表。 一般情况下,成员应是属性或事件。

适用于

另请参阅