แก้ไข

แชร์ผ่าน


ComponentSerializationService.SerializeMemberAbsolute Method

Definition

Serializes the given member on the given object, accounting for the default property value.

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

Parameters

store
SerializationStore

The SerializationStore to which the state of member will be serialized.

owningObject
Object

The object to which member is attached.

member
MemberDescriptor

The member to serialize.

Exceptions

store or value is null.

store is closed, or store is not a supported type of serialization store. Use a store returned by CreateStore().

Remarks

The SerializeMemberAbsolute method serializes the member on owningObject, even if member contains the default property value.

Note that for some members, containing the default value and restoring the setting of the same value to the member are different concepts. For example, if a property inherits its value from a parent object when no local value is set, setting the value back to the property may not be what is desired. The SerializeMemberAbsolute method takes this into account and would clear the state of the property in this case.

Applies to

See also