Table of Contents

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

name string

The local name to use for the descriptor (key) associated with the value.

value string

The 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 name or value is null.

ArgumentException

Thrown when an entry with the same descriptor already exists, or when name is 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

name string

The local name to use for the descriptor (key) associated with the value.

value XmpValue

The 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 name or value is null.

ArgumentException

Thrown when an entry with the same descriptor already exists, or when name is 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

name string

The local name to use for the descriptor (key) associated with the value.

prefix string

The prefix to use for the descriptor (key) associated with the value.

ns string

The namespace to use for the descriptor (key) associated with the value.

value XmpValue

The 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, or prefix, or ns, or value is null.

ArgumentException

Thrown when an entry with the same descriptor already exists, or when name is empty or consists only of whitespace.