Method Add
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
Add(string, string)
Adds a value to the XmpPropertyMap using the specified local name.
public void Add(string name, string value)
Parameters
namestringThe local name to use for the descriptor (key) associated with the value.
valuestringThe value to add to the XmpPropertyMap.
Remarks
To add an entry, the collection implicitly constructs an XmpPropertyDescriptor using the owner's prefix and namespace for the Prefix and Namespace
components, and the provided name for the Name component.
If an entry already exists whose descriptor matches the implicitly constructed descriptor, an ArgumentException is thrown. Use Contains(string) to check whether an entry with the specified local name already exists.
To overwrite an existing entry, use the indexer's setter.
Exceptions
- ArgumentNullException
Thrown when
nameorvalueisnull.- ArgumentException
Thrown when an entry with the same descriptor already exists, or when
nameis empty or consists only of whitespace.
Add(string, XmpValue)
Adds an XmpValue to the XmpPropertyMap using the specified local name.
public void Add(string name, XmpValue value)
Parameters
namestringThe local name to use for the descriptor (key) associated with the value.
valueXmpValueThe XmpValue to add to the XmpPropertyMap.
Remarks
To add an entry, the collection implicitly constructs an XmpPropertyDescriptor using the owner's prefix and namespace for the Prefix and Namespace
components, and the provided name for the Name component.
If an entry already exists whose descriptor matches the implicitly constructed descriptor, an ArgumentException is thrown. Use Contains(string) to check whether an entry with the specified local name already exists.
To overwrite an existing entry, use the indexer's setter.
Exceptions
- ArgumentNullException
Thrown when
nameorvalueisnull.- ArgumentException
Thrown when an entry with the same descriptor already exists, or when
nameis empty or consists only of whitespace.
Add(string, string, string, XmpValue)
Adds an XmpValue to the XmpPropertyMap using the specified local name, prefix, and namespace.
public void Add(string name, string prefix, string ns, XmpValue value)
Parameters
namestringThe local name to use for the descriptor (key) associated with the value.
prefixstringThe prefix to use for the descriptor (key) associated with the value.
nsstringThe namespace to use for the descriptor (key) associated with the value.
valueXmpValueThe XmpValue to add to the XmpPropertyMap.
Remarks
To add an entry, the collection constructs an XmpPropertyDescriptor using
the provided prefix and ns for the Prefix and Namespace
components, and the provided name for the Name component.
If an entry already exists whose descriptor matches the constructed descriptor, an ArgumentException is thrown.
Exceptions
- ArgumentNullException
Thrown when
name, orprefix, orns, orvalueisnull.- ArgumentException
Thrown when an entry with the same descriptor already exists, or when
nameis empty or consists only of whitespace.