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
C# | Visual Basic | Visual C++ | F# |
public void AddObject<T>( string key, T value )
Public Sub AddObject(Of T) ( key As String, value As T )
public: generic<typename T> void AddObject( String^ key, T value )
member AddObject : key : string * value : 'T -> unit
Generic Template Parameters
- T
-
[Missing <typeparam name="T"/> documentation for "M:Microsoft.Deployment.WindowsInstaller.CustomActionData.AddObject``1(System.String,``0)"]
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. |
Assembly: Microsoft.Deployment.WindowsInstaller (Module: Microsoft.Deployment.WindowsInstaller.dll) Version: 3.0.0.0 (3.11.1.2318)