CodeDomSerializer.SerializeMember Method

Definition

Serializes the given member on the given object.

C#
public virtual System.CodeDom.CodeStatementCollection SerializeMember (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, object owningObject, System.ComponentModel.MemberDescriptor member);

Parameters

manager
IDesignerSerializationManager

The serialization manager to use for serialization.

owningObject
Object

The object to which is member attached.

member
MemberDescriptor

The member to serialize.

Returns

A CodeStatementCollection representing the serialized state of member.

Exceptions

manager, owningObject, or member is null.

member is not a serializable type.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9