Add Method (item)

Microsoft Deployment Compression & Installer

Copy image CopyHover image
Deployment Tools Foundation Add Method (item)
Deployment Tools Foundation NamespacesMicrosoft.Deployment.WindowsInstallerCustomActionDataAdd(KeyValuePair<(Of <<'(String, String>)>>))
Adds an item with key and value to the data collection.
Declaration Syntax
C# Visual Basic Visual C++
public void Add(
	KeyValuePair<string, string> item
)
Public Sub Add ( 
	item As KeyValuePair(Of String, String)
)
public:
virtual void Add(
	KeyValuePair<String^, String^> item
) sealed
Parameters
item (KeyValuePair<(Of <(<'String, String>)>)>)
Case-sensitive data key, with a data value that 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)