EntityCoreTFieldsPerformCustomXmlSerialization Method |
Performs custom XML serialization for properties which have the CustomXmlSerializationAttribute.
Override this method if for some property the data has to be serialized into the output.
The xmlwriter should be used to write xml to. You shouldn't emit a startelement with the propertyname, that's already done. Also
you shouldn't emit an endelement with the propertyname, that will be done for you. Simply emit XML with the data. Be sure the xml
data is valid. You can use the XmlHelper class if necessary.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.10.0.0 (5.10.0)
Syntax protected virtual void PerformCustomXmlSerialization(
PropertyDescriptor descriptor,
Object propertyValue,
XmlWriter writer,
XmlFormatAspect aspects
)
Protected Overridable Sub PerformCustomXmlSerialization (
descriptor As PropertyDescriptor,
propertyValue As Object,
writer As XmlWriter,
aspects As XmlFormatAspect
)
Parameters
- descriptor
- Type: System.ComponentModelPropertyDescriptor
The descriptor of the property to serialize. - propertyValue
- Type: SystemObject
The property value. - writer
- Type: System.XmlXmlWriter
The writer. - aspects
- Type: SD.LLBLGen.Pro.ORMSupportClassesXmlFormatAspect
The aspects.
Remarks Deserialize the value with an override of PerformCustomXmlDeserialization. Adapter specific, Compact25 specific.
See Also