Merge Method (record)

Microsoft Deployment Tools

Deployment Tools Foundation Merge Method (record)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerViewMerge(Record)
Inserts or validates a record.
Declaration Syntax
C# Visual Basic Visual C++
public bool Merge(
	Record record
)
Public Function Merge ( _
	record As Record _
) As Boolean
public:
bool Merge(
	Record^ record
)
Parameters
record (Record)
the Record to be merged
Return Value
true if the record was inserted or validated, false if there is an existing record with the same primary keys that is not identical
Remarks

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

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