Insert Method (record)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Insert Method (record)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerViewInsert(Record)
Inserts a Record into the view.
Declaration Syntax
C# Visual Basic Visual C++
public void Insert(
	Record record
)
Public Sub Insert ( 
	record As Record
)
public:
void Insert(
	Record^ record
)
Parameters
record (Record)
the Record to be inserted
Remarks

Fails if a row with the same primary keys exists. Fails with a read-only database. This method cannot be used with a View containing joins.

See Modify(ViewModifyMode, Record) for more remarks.

Win32 MSI API: MsiViewModify

Exceptions
Exception Condition
InstallerException the insertion failed
InvalidHandleException the View handle is invalid

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