Add a simple value to the schema.
Namespace: TallComponents.PDF.Layout.MetadataAssembly: TallComponents.PDF.Layout (in TallComponents.PDF.Layout.dll) Version: 3.0.63.0
Syntax
| C# |
|---|
public void Add( string name, string value ) |
| Visual Basic |
|---|
Public Sub Add ( _ name As String, _ value As String _ ) |
Parameters
- name
- Type: System..::..String
The name of this value.
- value
- Type: System..::..String
The value.
Remarks
Currently only simple values are supported for XMP schemas. Collections such as Bag, Alt and Seq are not supported.
The XMP metadata cannot be specified from XML.
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | Thrown when this MetadataSchema has been removed from its MetadataSchemaCollection |
| System..::..ArgumentException | Thrown when a value with the same name is already set. |