Delete Method (record)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Delete Method (record)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerViewDelete(Record)
Deletes a Record from the View.
Declaration Syntax
C# Visual Basic Visual C++
public void Delete(
	Record record
)
Public Sub Delete ( 
	record As Record
)
public:
void Delete(
	Record^ record
)
Parameters
record (Record)
the Record to be deleted
Remarks

The Record must have been obtained by calling Fetch()()()(). Fails if the row has been deleted. 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 deletion 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)