Export Method (table, exportFilePath)

DTF API

Copy image CopyHover image
Deployment Tools Foundation Export Method (table, exportFilePath)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerDatabaseExport(String, String)
Copies the structure and data from a specified table to a text archive file.
Declaration Syntax
C# Visual Basic Visual C++ F#
public void Export(
	string table,
	string exportFilePath
)
Public Sub Export ( 
	table As String,
	exportFilePath As String
)
public:
void Export(
	String^ table, 
	String^ exportFilePath
)
member Export : 
        table : string * 
        exportFilePath : string -> unit 
Parameters
table (String)
Name of the table to be exported
exportFilePath (String)
Path to the file to be created
Remarks

Win32 MSI API: MsiDatabaseExport

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)