MetadataCollection Class
Provides the metadata for a document.
Inheritance Hierarchy
SystemObject
  GroupDocs.Parser.Extractors.MetadataMetadataCollection

Namespace: GroupDocs.Parser.Extractors.Metadata
Assembly: GroupDocs.Parser (in GroupDocs.Parser.dll) Version: 19.5
Syntax
public sealed class MetadataCollection : IEnumerable<KeyValuePair<string, string>>, 
	IEnumerable

The MetadataCollection type exposes the following members.

Constructors
  NameDescription
Public methodMetadataCollection
Initializes a new instance of the MetadataCollection class
Properties
  NameDescription
Public propertyIsEmpty
Gets a value indicating whether the metadata has data.
Public propertyItem
Gets or sets a value associated with the specified key.
Public propertyKeys
Gets a collection containing the keys in the MetadataCollection.
Methods
  NameDescription
Public methodContainsKey
Determines whether the MetadataCollection contains the specified key.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the MetadataCollection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Examples

Setting the value to the metadata:

C#
metadataCollection["CONTENT_TYPE"] = "application/word";

Getting the value from the metadata:

C#
string author = metadataCollection["author"];

Getting all metadata's keys:

C#
var keys = metadata.Keys;
See Also