Assign Method (record)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Assign Method (record)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerViewAssign(Record)
Updates or inserts a Record into the View.
Declaration Syntax
C# Visual Basic Visual C++
public void Assign(
	Record record
)
Public Sub Assign ( 
	record As Record
)
public:
void Assign(
	Record^ record
)
Parameters
record (Record)
the Record to be assigned
Remarks

Updates record if the primary keys match an existing row and inserts if they do not match. 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 assignment 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)