Back to Devexpress

XmpName.Get(String, String) Method

officefileapi-devexpress-dot-pdf-dot-xmp-dot-xmpname-dot-get-x28-system-dot-string-system-dot-string-x29.md

latest2.7 KB
Original Source

XmpName.Get(String, String) Method

Generates an XMP name ( prefix:local format).

Namespace : DevExpress.Pdf.Xmp

Assembly : DevExpress.Pdf.v25.2.Core.dll

NuGet Package : DevExpress.Pdf.Core

Declaration

csharp
public static XmpName Get(
    string localName,
    string namespaceUri
)
vb
Public Shared Function Get(
    localName As String,
    namespaceUri As String
) As XmpName

Parameters

NameTypeDescription
localNameString

The local name.

| | namespaceUri | String |

The namespace URI (prefix).

|

Returns

TypeDescription
XmpName

The XMP name.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Get(String, String) 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#L41

csharp
// Add MaxPageSize structure:
XmpName structureName = XmpName.Get("MaxPageSize", "http://ns.adobe.com/xap/1.0/t/pg/");
XmpStructure dimensions = editedMetadata.CreateStructure(structureName);

pdf-document-api-xmp-example/VB/XmpMetadataExamples/Program.vb#L33

vb
' Add MaxPageSize structure:
Dim structureName As XmpName = XmpName.Get("MaxPageSize", "http://ns.adobe.com/xap/1.0/t/pg/")
Dim dimensions As XmpStructure = editedMetadata.CreateStructure(structureName)

See Also

XmpName Class

XmpName Members

DevExpress.Pdf.Xmp Namespace