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