Deployment Tools Foundation
Assign Method (record)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► View ► Assign(Record)
Updates or inserts a Record into the View.


- record (Record)
- the Record to be assigned

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

Exception | Condition |
---|---|
InstallerException | the assignment failed |
InvalidHandleException | the View handle is invalid |