Delete Method (record)

Microsoft Deployment Tools

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