officefileapi-devexpress-dot-pdf-dot-xmp-dot-xmpdocument-dot-createarray-x28-system-dot-string-devexpress-dot-pdf-dot-xmp-dot-xmparraytype-x29.md
Adds an array at the end of the packet.
Namespace : DevExpress.Pdf.Xmp
Assembly : DevExpress.Pdf.v25.2.Core.dll
NuGet Package : DevExpress.Pdf.Core
public XmpArray CreateArray(
string qualifiedName,
XmpArrayType arrayType
)
Public Function CreateArray(
qualifiedName As String,
arrayType As XmpArrayType
) As XmpArray
| Name | Type | Description |
|---|---|---|
| qualifiedName | String |
The array’s qualified name ( prefix:local format).
| | arrayType | XmpArrayType |
The array type.
|
| Type | Description |
|---|---|
| XmpArray |
An empty XMP array.
|
| Type | Description |
|---|---|
| ArgumentException |
Thrown if the prefix specified in the qualifiedName method parameter is not registered.
|
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CreateArray(String, XmpArrayType) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
pdf-document-api-xmp-example/CS/XmpMetadataExamples/Program.cs#L87
// Add items with "xmp" prefix:
XmpArray array = document.CreateArray("xmp:Identifier", XmpArrayType.Unordered);
array.Add("identifier1");
pdf-document-api-xmp-example/VB/XmpMetadataExamples/Program.vb#L68
' Add items with "xmp" prefix:
Dim array As XmpArray = document.CreateArray("xmp:Identifier", XmpArrayType.Unordered)
array.Add("identifier1")
See Also