Add Method (key, value)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Add Method (key, value)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerCustomActionDataAdd(String, String)
Adds a key and value to the data collection.
Declaration Syntax
C# Visual Basic Visual C++
public void Add(
	string key,
	string value
)
Public Sub Add ( 
	key As String,
	value As String
)
public:
virtual void Add(
	String^ key, 
	String^ value
) sealed
Parameters
key (String)
Case-sensitive data key.
value (String)
Data value (may be null).
Exceptions
Exception Condition
ArgumentException the key does not consist solely of letters, numbers, and the period, underscore, and space characters.

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