CodeDomComponentSerializationService.SerializeMember 方法

定义

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

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

参数

store
SerializationStore

要将 member 序列化为的 SerializationStore

owningObject
Object

拥有 member 的对象。

member
MemberDescriptor

给定成员。

例外

storeowningObjectmembernull

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

注解

可以为同一对象多次调用此方法,以在序列化存储中生成序列化成员的列表。 成员通常必须是属性或事件。

适用于