LiquidTechnologies.XmlObjects Namespace / LxSerializer Class / SerializeToString Method
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
    SerializeToString Method (LxSerializer)
    In This Topic
    Serializes a Liquid XML Objects attributed class, returning it as a string.
    Syntax
    'Declaration
     
    
    Public Function SerializeToString( _
       ByVal element As System.Object, _
       Optional ByVal settings As LxWriterSettings, _
       Optional ByVal elementName As System.Xml.XmlQualifiedName _
    ) As System.String
    public System.string SerializeToString( 
       System.object element,
       LxWriterSettings settings,
       System.Xml.XmlQualifiedName elementName
    )

    Parameters

    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).

    Return Value

    A string containing the serialized element
    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