Import Method (importFilePath)

DTF API

Copy image CopyHover image
Deployment Tools Foundation Import Method (importFilePath)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerDatabaseImport(String)
Imports a database table from a text archive file, dropping any existing table.
Declaration Syntax
C# Visual Basic Visual C++ F#
public void Import(
	string importFilePath
)
Public Sub Import ( 
	importFilePath As String
)
public:
void Import(
	String^ importFilePath
)
member Import : 
        importFilePath : string -> unit 
Parameters
importFilePath (String)
Path to the file to be imported. The table name is specified within the file.
Remarks

Win32 MSI API: MsiDatabaseImport

Exceptions
Exception Condition
FileNotFoundException the file path is invalid
InvalidHandleException the Database handle is invalid

Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)