Nevron Open Vision Documentation
Nevron.Nov.Xml Namespace / NXmlDocumentSerializer Class / Serialize Method
The document to serialize.
The stream to write data to.
The encoding to use.


In This Topic
    Serialize Method (NXmlDocumentSerializer)
    In This Topic
    Serializes the given XML document to the specified stream using the provided encoding.
    Syntax
    'Declaration
     
    
    Public Function Serialize( _
       ByVal document As NXmlDocument, _
       ByVal stream As System.IO.Stream, _
       ByVal encoding As NEncoding _
    ) As System.Boolean
    'Usage
     
    
    Dim instance As NXmlDocumentSerializer
    Dim document As NXmlDocument
    Dim stream As System.IO.Stream
    Dim encoding As NEncoding
    Dim value As System.Boolean
     
    value = instance.Serialize(document, stream, encoding)
    public System.bool Serialize( 
       NXmlDocument document,
       System.IO.Stream stream,
       NEncoding encoding
    )

    Parameters

    document
    The document to serialize.
    stream
    The stream to write data to.
    encoding
    The encoding to use.

    Return Value

    True if the operation was successful, otherwise false.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also