Adds an element with the provided key and value to the IDictionary<(Of <(<'TKey, TValue>)>)>.
Namespace: CodeSmith.EngineAssembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)
Syntax
C# |
---|
public void Add( string key, string value ) |
Visual Basic |
---|
Public Sub Add ( key As String, value As String ) |
Parameters
- key
- Type: System..::..String
The object to use as the key of the element to add.
- value
- Type: System..::..String
The object to use as the value of the element to add.
Implements
IDictionary<(Of <(<'TKey, TValue>)>)>..::..Add(TKey, TValue)Exceptions
Exception | Condition |
---|---|
System..::..NotSupportedException | The IDictionary<(Of <(<'TKey, TValue>)>)> is read-only. |
System..::..ArgumentException | An element with the same key already exists in the IDictionary<(Of <(<'TKey, TValue>)>)>. |
System..::..ArgumentNullException | key is null. |