PdfXmpMetadata.Contains

Contains(string)

Checks if dictionary contains the specified key.

public bool Contains(string key)
ParameterTypeDescription
keyStringKey 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


Contains(DefaultMetadataProperties)

Checks if dictionary contains the specified property.

public bool Contains(DefaultMetadataProperties property)
ParameterTypeDescription
propertyDefaultMetadataPropertiesProperty which will be checked.

Return Value

True - if the dictionary contains the specified property; otherwise, false.

See Also


Contains(KeyValuePair<string, XmpValue>)

Checks does specified key-value pair is contained in the dictionary.

public bool Contains(KeyValuePair<string, XmpValue> item)
ParameterTypeDescription
itemKeyValuePair`2Key-value pair.

Return Value

true if this pauir was found.

See Also