GroupDocs.Metadata for .NET 24.10 Release Notes
This page contains release notes for GroupDocs.Metadata for .NET 24.10
Major Features
There are the following features, enhancements, and fixes in this release:
- More .msg properties now editable
- Add support for read .fb2 format
- For example add support .NET 8.0
Full List of Issues Covering all Changes in this Release
Key | Summary | Category |
---|---|---|
METADATANET-4099 | Add editing support for some email properties | New Feature |
METADATANET-4077 | Support FB2 format readonly | New Feature |
METADATANET-4084 | Add .NET 8 support | New Feature |
Public API and Backward Incompatible Changes
Implement the ability to configure cache for heavy operations
Public API changes
The Fb2RootPackage class has been added to the GroupDocs.Metadata.Formats.Ebook namespace
Use cases
Set .msg properties
using (Metadata metadata = new Metadata(path))
{
var msgFormat = metadata.GetRootPackage<MsgRootPackage>();
msgFormat.EmailPackage.Sender = sender;
msgFormat.EmailPackage.DeliveryTime = deliveryTime;
msgFormat.EmailPackage.ClientSubmitTime = clientSubmitTime;
msgFormat.EmailPackage.Headers.Set(headerName, new PropertyValue(headerValue));
msgFormat.EmailPackage.Headers.Set(headerNameChange, new PropertyValue(headerValueChange));
msgFormat.EmailPackage.Headers.Set(headerSIDName, new PropertyValue(headerSIDValue));
metadata.Save(outputPath);
}
Read .fb2 properties
using (Metadata metadata = new Metadata(Constants.InputFb2))
{
var root = metadata.GetRootPackage<Fb2RootPackage>();
Console.WriteLine(root.Fb2Package.TitleInfo.BookTitle);
Console.WriteLine(root.Fb2Package.TitleInfo.Lang);
Console.WriteLine(root.Fb2Package.TitleInfo.SrcLang);
Console.WriteLine(root.Fb2Package.DocumentInfo.ProgramUsed);
}