LiquidTechnologies.XmlObjects Namespace / LxSerializer Class / Serialize Method / Serialize(String,Object,LxWriterSettings,XmlQualifiedName) Method
The stream to write the XML data to
The Liquid XML Objects attributed class to serialize
The Liquid XML Objects settings to control the serialization, default configuration is used if null
The name of the root XML element. Only required if the elementObj is a complexType (attributed with LiquidTechnologies.XmlObjects.Attribution.LxComplexTypeDefinitionAttribute).

In This Topic
    Serialize(String,Object,LxWriterSettings,XmlQualifiedName) Method
    In This Topic
    Serializes a Liquid XML Objects attributed class to an System.Xml.XmlWriter.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Serialize( _
       ByVal filename As System.String, _
       ByVal elementObj As System.Object, _
       Optional ByVal settings As LxWriterSettings, _
       Optional ByVal elementName As System.Xml.XmlQualifiedName _
    ) 
    public void Serialize( 
       System.string filename,
       System.object elementObj,
       LxWriterSettings settings,
       System.Xml.XmlQualifiedName elementName
    )

    Parameters

    filename
    The stream to write the XML data to
    elementObj
    The Liquid XML Objects attributed class to serialize
    settings
    The Liquid XML Objects settings to control the serialization, default configuration is used if null
    elementName
    The name of the root XML element. Only required if the elementObj is a complexType (attributed with LiquidTechnologies.XmlObjects.Attribution.LxComplexTypeDefinitionAttribute).
    Remarks
    The XML data written is indented and encoded using UTF-8.
    Requirements

    Target Platforms: Windows 10, Windows 8, Windows 7, Windows Vista, Windows Server 2016, Windows Server 2012, Windows Server 2008. Please ensure you have the latest Service Pack for your operating system installed.

    See Also