Target DictionaryAdd(String, Target) Method
Adds an element with the provided key and value to the IDictionaryTKey, TValue.
Definition
Namespace: Sandcastle.Tools.BuildComponents.Targets
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2026.1.20.0
Assembly: Sandcastle.Tools.BuildComponents (in Sandcastle.Tools.BuildComponents.dll) Version: 2026.1.20.0
C#
public abstract void Add(
string key,
Target value
)VB
Public MustOverride Sub Add (
key As String,
value As Target
)C++
public:
virtual void Add(
String^ key,
Target^ value
) abstractF#
abstract Add :
key : string *
value : Target -> unit Parameters
- key String
- The object to use as the key of the element to add.
- value Target
- The object to use as the value of the element to add.
Implements
IDictionaryTKey, TValueAdd(TKey, TValue)Remarks
If the key already exists, the existing value is replaced
Exceptions
| ArgumentNullException | key is . |
| ArgumentException | An element with the same key already exists in the IDictionaryTKey, TValue. |
| NotSupportedException | The IDictionaryTKey, TValue is read-only. |