Deployment Tools Foundation
AddObject<(Of <(T>)>) Method (key, value)
Deployment Tools Foundation Namespaces ► Microsoft.Deployment.WindowsInstaller ► CustomActionData ► AddObject<(Of <(T>)>)(String, T)
Adds a value to the data collection, using XML serialization to persist the object as a string.
Declaration Syntax
Generic Template Parameters- T
Parameters- key (String)
- Case-sensitive data key.
- value (T)
- 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. |
| NotSupportedException | The value type does not support XML serialization. |
| InvalidOperationException | The value could not be serialized. |