

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

C# | Visual Basic | Visual C++ |
public void Assign( Record record )
Public Sub Assign ( record As Record )
public: void Assign( Record^ record )

- 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 |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)