ComponentSerializationService.SerializeMemberAbsolute Method (SerializationStore, Object, MemberDescriptor)


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

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System (in System.dll)

public abstract void SerializeMemberAbsolute(
	SerializationStore store,
	object owningObject,
	MemberDescriptor member


Type: System.ComponentModel.Design.Serialization.SerializationStore

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

Type: System.Object

The object to which member is attached.

Type: System.ComponentModel.MemberDescriptor

The member to serialize.

Exception Condition

store or value is null.


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

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.

.NET Framework
Available since 2.0
Return to top