Initializes a new instance of the XmpSchema class.

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

Syntax

C#
public XmpSchema(
	string prefix,
	string uri
)
VB
Public Sub New ( 
	prefix As String,
	uri As String
)

Parameters

prefix
Type: System.String
The schema namespace prefix.
uri
Type: System.String
The name of the schema.

Remarks

Metadata should not contain duplicate schemas, so the ArgumentException will be thrown if metadata already contains schema with specified namespace prefix.

Creation of schemas with well-known prefixes is forbidden. Please use corresponding properties of XmpMetadata to access properties of a well-known schema.

Each schema consists of a schema name and namespace prefix. The name is a URI that serves to uniquely identify the schema. It is simply a unique string. A schema name looks like an URI (e.g. 'http://ns.adobe.com/xap/1.0/') but there might or might not be an actual Web page at the URI. The URI must obey XML namespace rules, and it should end in "/" or "#".

A schema namespace prefix is a short abbreviation for the full schema name. The prefix is used for properties in the schema.

See Also