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

MetadataDictionary.Add Method (Object, Object)

Adds one item at 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. Typically it is a number that represents an EXIF or IPTC tag. Most used tags are available as static members of ExifDictionary and IptcDictionary.
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 Contains(Object) method.

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

See Also

Reference