GroupDocs.Metadata for .NET 21.6 Release Notes
This page contains release notes for GroupDocs.Metadata for .NET 21.6
Major Features
There are the following features, enhancements and fixes in this release:
- Implement property interpreters for all enum types across all formats
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
METADATANET-3846 | Implement property interpreters for all enum types across all formats | Improvement |
Public API and Backward Incompatible Changes
Implement property interpreters for all enum types across all formats
This improvement allows the user to get a user-friendly interpretation of a metadata property representing an enum value. Please refer to this article for more information.
Public API changes
None
Use cases
Obtain a full list of properties that provide an interpreted value
foreach (string file in Directory.GetFiles(Constants.InputPath))
{
using (Metadata metadata = new Metadata(file))
{
if (metadata.FileFormat != FileFormat.Unknown && !metadata.GetDocumentInfo().IsEncrypted)
{
Console.WriteLine();
Console.WriteLine(file);
var properties = metadata.FindProperties(p => p.InterpretedValue != null);
foreach (var property in properties)
{
Console.WriteLine(property.Name);
Console.WriteLine(property.Value.RawValue);
Console.WriteLine(property.InterpretedValue.RawValue);
}
}
}
}