Creates new XMP property and adds it to the end of this XmpPropertyList.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public XmpProperty Add(
	string name,
	XmpValue value
)
VB
Public Function Add ( 
	name As String,
	value As XmpValue
) As XmpProperty

Parameters

name
Type: System.String
The name of the property.
value
Type: BitMiracle.Docotic.Pdf.XmpValue
The value of the property.

Return Value

Type: XmpProperty
The newly created XMP property.

Remarks

Collection should not contain duplicate properties, so the ArgumentException will be thrown if this XmpPropertyList already contains property with specified name.

XMP property value can be null or an instance of XmpArray, XmpString or XmpStructure types only.

See Also