

Deployment Tools Foundation
Delete Method (record)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► View ► Delete(Record)
Deletes a Record from the View.

C# | Visual Basic | Visual C++ | F# |
public void Delete( Record record )
Public Sub Delete ( record As Record )
public: void Delete( Record^ record )
member Delete : record : Record -> unit

- record (Record)
- the Record to be deleted

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

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.11.1.2318)