Remove Method (key)

DTF API

Copy image CopyHover image
Deployment Tools Foundation Remove Method (key)
Removes an install path from the map.
Declaration Syntax
C# Visual Basic Visual C++ F#
public bool Remove(
	string key
)
Public Function Remove ( 
	key As String
) As Boolean
public:
virtual bool Remove(
	String^ key
) sealed
abstract Remove : 
        key : string -> bool 
override Remove : 
        key : string -> bool 
Parameters
key (String)
Depending on the type of InstallPathMap, this is the primary key from the either the Directory, Component, or File table.
Return Value
Boolean
true if the item was removed, false if it did not exist
Remarks
Changing an install path does not modify the Database used to generate this InstallPathMap.

Assembly: Microsoft.Deployment.WindowsInstaller.Package (Module: Microsoft.Deployment.WindowsInstaller.Package.dll) Version: 3.0.0.0 (3.11.1.2318)