

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++ | F# |
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
abstract Add : item : KeyValuePair<string, string> -> unit override Add : item : KeyValuePair<string, string> -> unit

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