共用方式為


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

SerializationStoremember 將序列化至其中。

owningObject
Object

物件,其擁有 member

member
MemberDescriptor

指定的成員。

例外狀況

storeowningObjectmembernull

store 已關閉,或 store 不是支援的序列化存放區類型。 使用由 CreateStore() 傳回的存放區。

備註

這個方法可以多次叫用,讓相同的物件在串行化存放區中建立串行化成員的清單。 成員通常必須是屬性或事件。

適用於