XmlSerializerSerializeContent(XElement, Object, XmlSerializationOptions) Method
Saves public properties or collection elements of an object given in
obj parameter
into an already existing
XElement object given in
parent parameter
with provided
options.
Namespace: KGySoft.Serialization.XmlAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public static void SerializeContent(
XElement parent,
Object obj,
XmlSerializationOptions options = XmlSerializationOptions.CompactSerializationOfPrimitiveArrays|XmlSerializationOptions.EscapeNewlineCharacters
)
Public Shared Sub SerializeContent (
parent As XElement,
obj As Object,
Optional options As XmlSerializationOptions = XmlSerializationOptions.CompactSerializationOfPrimitiveArrays Or XmlSerializationOptions.EscapeNewlineCharacters
)
public:
static void SerializeContent(
XElement^ parent,
Object^ obj,
XmlSerializationOptions options = XmlSerializationOptions::CompactSerializationOfPrimitiveArrays|XmlSerializationOptions::EscapeNewlineCharacters
)
static member SerializeContent :
parent : XElement *
obj : Object *
?options : XmlSerializationOptions
(* Defaults:
let _options = defaultArg options XmlSerializationOptions.CompactSerializationOfPrimitiveArrays|XmlSerializationOptions.EscapeNewlineCharacters
*)
-> unit
Parameters
- parent XElement
- The parent under that the object will be saved. Its content can be deserialized by DeserializeContent(XElement, Object) method.
- obj Object
- The object, which inner content should be serialized. Parameter value must not be .
- options XmlSerializationOptions (Optional)
- Options for serialization. This parameter is optional.
Default value: CompactSerializationOfPrimitiveArrays, EscapeNewlineCharacters