Documents for PDF, .NET Edition Documentation
AddProperty Method

GrapeCity.Documents.Pdf Assembly > GrapeCity.Documents.Pdf Namespace > Metadata Class : AddProperty Method
XML namespace.
Property name.
Property value.
Adds a property to metadata. Note that only allowed namespaces are:

"http://purl.org/dc/elements/1.1/" (Dublin Core Properties)

"http://ns.adobe.com/xap/1.0/" (XMP Core Properties)

"http://ns.adobe.com/pdf/1.3/" (PDF Properties)

Trying to add a property with another namespace will throw an exception.
Syntax
'Declaration
 
Public Sub AddProperty( _
   ByVal ns As System.String, _
   ByVal name As System.String, _
   ByVal value As System.String _
) 
public void AddProperty( 
   System.string ns,
   System.string name,
   System.string value
)

Parameters

ns
XML namespace.
name
Property name.
value
Property value.
See Also

Reference

Metadata Class
Metadata Members