VistaDB 6
VistaDB.DDA Namespace / IVistaDBDatabase Interface / ExportXml Method
XML file name
The export mode


In This Topic
    ExportXml Method
    In This Topic
    Export database schema and table data to xml-formated file according to the transfer list of tables. If relationships set in database, the information will be exported only concerning those ones, which link tables included into the transfer list.
    Syntax
    'Declaration
     
    
    Function ExportXml( _
       ByVal xmlFileName As System.String, _
       ByVal mode As VistaDBXmlWriteMode _
    ) As System.Long
    'Usage
     
    
    Dim instance As IVistaDBDatabase
    Dim xmlFileName As System.String
    Dim mode As VistaDBXmlWriteMode
    Dim value As System.Long
     
    value = instance.ExportXml(xmlFileName, mode)
    System.long ExportXml( 
       System.string xmlFileName,
       VistaDBXmlWriteMode mode
    )

    Parameters

    xmlFileName
    XML file name
    mode
    The export mode

    Return Value

    The total number of rows of data exported to the XML file, or a negative value if a non-error usage scenario prevents export from being possible
    Exceptions
    ExceptionDescription
    A SecurityException may be thrown by the .NET framework when attempting to create or write to the specified file.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also