Liquid XML Data Binder 2020
LiquidTechnologies.XmlObjects Namespace / LjSerializer<T> Class / Serialize Method / Serialize(TextWriter,T,LjWriterSettings,XmlQualifiedName) Method
The System.IO.TextWriter to write the XML data to
The Liquid XML Objects attributed class to serialize
The Liquid XML Objects settings to control the serialization
The name of the root XML element. Only required if T is a complexType (attributed with LiquidTechnologies.XmlObjects.Attribution.LxComplexTypeDefinitionAttribute).

In This Topic
    Serialize(TextWriter,T,LjWriterSettings,XmlQualifiedName) Method
    In This Topic
    Serializes a class of type T to an System.IO.TextWriter.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Serialize( _
       ByVal textWriter As System.IO.TextWriter, _
       ByVal element As T, _
       Optional ByVal settings As LjWriterSettings, _
       Optional ByVal elementName As System.Xml.XmlQualifiedName _
    ) 
    public void Serialize( 
       System.IO.TextWriter textWriter,
       T element,
       LjWriterSettings settings,
       System.Xml.XmlQualifiedName elementName
    )

    Parameters

    textWriter
    The System.IO.TextWriter to write the XML data to
    element
    The Liquid XML Objects attributed class to serialize
    settings
    The Liquid XML Objects settings to control the serialization
    elementName
    The name of the root XML element. Only required if T is a complexType (attributed with LiquidTechnologies.XmlObjects.Attribution.LxComplexTypeDefinitionAttribute).
    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