Class PdfCustomMetadataProperties
Class that represents set of custom metadata properties
Namespace: IronPdf.MetaData
Assembly: IronPdf.dll
Syntax
public class PdfCustomMetadataProperties : PdfClientAccessor
Properties
Item[String]
Gets or sets element value with the specified key.
Declaration
public string this[string key] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key of the element. |
Property Value
Type | Description |
---|---|
System.String |
Methods
Add(String, String)
Method for adding property with the specified name and value.
You can convert value of any type to the string and store it in custom properties.
Declaration
public void Add(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the custom PDF MetaData Property. |
System.String | value | The value of the custom PDF MetaData Property as a String. |
Remove(String)
Method for removing property by its name.
Declaration
public bool Remove(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the property. |
Returns
Type | Description |
---|---|
System.Boolean |
|