共用方式為


CodeDomSerializer.SerializeMember 方法

定義

在指定的物件上將指定的成員序列化。

public:
 virtual System::CodeDom::CodeStatementCollection ^ SerializeMember(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::Object ^ owningObject, System::ComponentModel::MemberDescriptor ^ member);
public virtual System.CodeDom.CodeStatementCollection SerializeMember (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object owningObject, System.ComponentModel.MemberDescriptor member);
abstract member SerializeMember : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj * System.ComponentModel.MemberDescriptor -> System.CodeDom.CodeStatementCollection
override this.SerializeMember : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * obj * System.ComponentModel.MemberDescriptor -> System.CodeDom.CodeStatementCollection
Public Overridable Function SerializeMember (manager As IDesignerSerializationManager, owningObject As Object, member As MemberDescriptor) As CodeStatementCollection

參數

manager
IDesignerSerializationManager

用於序列化的序列化管理員。

owningObject
Object

物件,member 附加於此。

member
MemberDescriptor

要序列化的成員。

傳回

表示 member 序列化狀態的 CodeStatementCollection

例外狀況

managerowningObjectmembernull

member 不是可序列化的類型。

適用於