PdfXmpMetadata.Contains
Contents
[
Hide
]Contains(string)
Checks if dictionary contains the specified key.
public bool Contains(string key)
Parameter | Type | Description |
---|---|---|
key | String | Key which will be checked. |
Return Value
True - if the dictionary contains the specified key; otherwise, false.
Examples
PdfXmpMetadata xmp = new PdfXmpMetadata();
xmp.BindPdf("input.pdf");
xmp.Add("xmp:Nickname", "Nickname1");
if (!xmp.Contains("xmp:Nickname"))
Console.WriteLine("Key does not exists");
See Also
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Contains(DefaultMetadataProperties)
Checks if dictionary contains the specified property.
public bool Contains(DefaultMetadataProperties property)
Parameter | Type | Description |
---|---|---|
property | DefaultMetadataProperties | Property which will be checked. |
Return Value
True - if the dictionary contains the specified property; otherwise, false.
See Also
- enum DefaultMetadataProperties
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Contains(KeyValuePair<string, XmpValue>)
Checks does specified key-value pair is contained in the dictionary.
public bool Contains(KeyValuePair<string, XmpValue> item)
Parameter | Type | Description |
---|---|---|
item | KeyValuePair`2 | Key-value pair. |
Return Value
true if this pauir was found.
See Also
- class XmpValue
- class PdfXmpMetadata
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF