![Copy image Copy image](copycode.gif)
![CopyHover image CopyHover image](copycodeHighlight.gif)
Deployment Tools Foundation
Merge Method (record)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► View ► Merge(Record)
Inserts or validates a record.
![](collapse_all.gif)
C# | Visual Basic | Visual C++ |
public bool Merge( Record record )
Public Function Merge ( record As Record ) As Boolean
public: bool Merge( Record^ record )
![](collapse_all.gif)
- record (Record)
- the Record to be merged
![](collapse_all.gif)
Boolean
true if the record was inserted or validated, false if there is an existing record with the same primary keys that is not identical
true if the record was inserted or validated, false if there is an existing record with the same primary keys that is not identical
![](collapse_all.gif)
Works only with read-write records. This method cannot be used with a View containing joins.
See Modify(ViewModifyMode, Record) for more remarks.
Win32 MSI API: MsiViewModify
![](collapse_all.gif)
Exception | Condition |
---|---|
InstallerException | the merge failed (for a reason other than invalid data) |
InvalidHandleException | the View handle is invalid |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.9.1006.0)