This documentation is for the old version. Go to the latest Graphics Mill docs

XmpDictionaryNode.Add Method

Adds one item with the specified key.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Overridable Sub Add ( _
	key As Object, _
	value As Object _
)
C#
public virtual void Add(
	Object key,
	Object value
)

Parameters

key

Type: System.Object

Key of the object to add.
value

Type: System.Object

An item to add into the dictionary.

Remarks

If item (or several items) are already stored at specified key, this method fails. To check whether the item with such key exists, use the Contains(Object) method.

An alternative way to add new entries into the dictionary is to use the Item[Object] method. Unlike the Add(Object, Object) method, if the key is found in the dictionary, new item overwrites the old value.

See Also

Reference