TargetDictionaryAdd(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: 2024.12.21.0
public abstract void Add(
	string key,
	Target value
)

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

ArgumentNullExceptionkey is .
ArgumentExceptionAn element with the same key already exists in the IDictionaryTKey, TValue.
NotSupportedExceptionThe IDictionaryTKey, TValue is read-only.

See Also