VistaDB 6
VistaDB.DDA Namespace / IVistaDBDatabase Interface / ImportXml Method / ImportXml(XmlReader,VistaDBXmlReadMode,Boolean) Method
Instance of System.Xml.XmlReader class
The import mode
When set, the import process will be interrupted by any error and an exception will be raised


In This Topic
    ImportXml(XmlReader,VistaDBXmlReadMode,Boolean) Method
    In This Topic
    Update database schema and import table data through XmlReader.
    Syntax
    'Declaration
     
    
    Overloads Function ImportXml( _
       ByVal xmlReader As System.Xml.XmlReader, _
       ByVal mode As VistaDBXmlReadMode, _
       ByVal interruptOnError As System.Boolean _
    ) As System.Long
    'Usage
     
    
    Dim instance As IVistaDBDatabase
    Dim xmlReader As System.Xml.XmlReader
    Dim mode As VistaDBXmlReadMode
    Dim interruptOnError As System.Boolean
    Dim value As System.Long
     
    value = instance.ImportXml(xmlReader, mode, interruptOnError)
    System.long ImportXml( 
       System.Xml.XmlReader xmlReader,
       VistaDBXmlReadMode mode,
       System.bool interruptOnError
    )

    Parameters

    xmlReader
    Instance of System.Xml.XmlReader class
    mode
    The import mode
    interruptOnError
    When set, the import process will be interrupted by any error and an 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.
    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