CodeDomComponentSerializationService::SerializeMemberAbsolute Method (SerializationStore^, Object^, MemberDescriptor^)
Serializes the given member on the given object, but also serializes the member if it contains the default property value.
Assembly: System.Design (in System.Design.dll)
public: virtual void SerializeMemberAbsolute( SerializationStore^ store, Object^ owningObject, MemberDescriptor^ member ) override
Parameters
- store
-
Type:
System.ComponentModel.Design.Serialization::SerializationStore^
The SerializationStore to which member will be serialized.
- owningObject
-
Type:
System::Object^
The object that owns the member.
- member
-
Type:
System.ComponentModel::MemberDescriptor^
The given member.
| Exception | Condition |
|---|---|
| ArgumentNullException | store, owningObject, or member is null. |
| InvalidOperationException | store is closed, or store is not a supported type of serialization store. Use a store returned by CreateStore. |
For some members, containing the default property value and setting the same value back to the member are different concepts. For example, if a property inherits its value from a parent object if 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.
Available since 2.0