Assign Method (record)

Microsoft Deployment Tools

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) Version: 3.0.0.0 (3.5.1623.0)