Target Type 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 void Add(
string key,
Target value
)VB
Public Sub Add (
key As String,
value As Target
)C++
public:
virtual void Add(
String^ key,
Target^ value
) sealedF#
abstract Add :
key : string *
value : Target -> unit
override 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
This method is not implemented. Use Add(ReferenceLinkType, TargetDictionary)
to add target dictionaries and their associated reference link type
Exceptions
| ArgumentNullException | key is . |
| ArgumentException | An element with the same key already exists in the IDictionaryTKey, TValue. |
| NotSupportedException | The IDictionaryTKey, TValue is read-only. |