XmpPropertyList.Add Method (String, XmpValue, String)

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,
	string description
)
VB
Public Function Add ( 
	name As String,
	value As XmpValue,
	description As String
) As XmpProperty

Parameters

name
Type: System.String
The name of the property.
value
Type: BitMiracle.Docotic.Pdf.XmpValue
The value of the property.
description
Type: System.String
The description 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