

Deployment Tools Foundation
Add Method (item)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► CustomActionData ► Add(KeyValuePair<(Of <<'(String, String>)>>))
Adds an item with key and value to the data collection.

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

- item (KeyValuePair<(Of <(<'String, String>)>)>)
- Case-sensitive data key, with a data value that may be null.

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)