VistaDB 6
VistaDB.DDA Namespace / IVistaDBDatabase Interface / ImportXml Method / ImportXml(String,VistaDBXmlReadMode,Boolean) Method
XML file name
The import mode
When set, the import process will be interrupted by any error and respective exception will be raised


In This Topic
    ImportXml(String,VistaDBXmlReadMode,Boolean) Method
    In This Topic
    Update database schema and import table data in according to the transfer list of tables.
    Syntax
    'Declaration
     
    
    Overloads Function ImportXml( _
       ByVal xmlFileName As System.String, _
       ByVal mode As VistaDBXmlReadMode, _
       ByVal interruptOnError As System.Boolean _
    ) As System.Long
    'Usage
     
    
    Dim instance As IVistaDBDatabase
    Dim xmlFileName As System.String
    Dim mode As VistaDBXmlReadMode
    Dim interruptOnError As System.Boolean
    Dim value As System.Long
     
    value = instance.ImportXml(xmlFileName, mode, interruptOnError)
    System.long ImportXml( 
       System.string xmlFileName,
       VistaDBXmlReadMode mode,
       System.bool interruptOnError
    )

    Parameters

    xmlFileName
    XML file name
    mode
    The import mode
    interruptOnError
    When set, the import process will be interrupted by any error and respective exception will be raised

    Return Value

    The total number of rows of data imported from the XML file, or a negative value if a non-error usage scenario prevents import from being possible
    Exceptions
    ExceptionDescription
    A VistaDBException may be thrown if improper use of the API would prevent import from being possible.
    A SecurityException may be thrown by the .NET framework when attempting to access 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