Class PdfCustomMetadataProperties
Class that represents set of custom metadata properties
Inheritance
System.Object
PdfCustomMetadataProperties
Namespace: IronPdf.MetaData
Assembly: IronPdf.dll
Syntax
public class PdfCustomMetadataProperties : Object
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 |
Keys
Declaration
public IEnumerable<string> Keys { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<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 |
|