Browse our Products Toggle navigation
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
With Aspose.Email for .NET 24.2, C# developers can enforce container class matching when adding folders to PST files for improved data integrity. The following C# code example showcases how to use the newly added EnforceContainerClassMatching property of the FolderCreationOptions class for this purpose:
EnforceContainerClassMatching
FolderCreationOptions
using (var pst = PersonalStorage.Create("storage.pst", FileFormatVersion.Unicode)) { // Create a standard Contacts folder with the IPF.Contacts container class. var contacts = pst.CreatePredefinedFolder("Contacts", StandardIpmFolder.Contacts); // An exception will not arise. EnforceContainerClassMatching is false by default. contacts.AddSubFolder("Subfolder1", "IPF.Note"); // An exception will occur as the container class of the subfolder being added (IPF.Note) // does not match the container class of the parent folder (IPF.Contact). contacts.AddSubFolder("Subfolder3", new FolderCreationOptions {EnforceContainerClassMatching = true, ContainerClass = "IPF.Note"}); }
Source*
This update to the C# Email apps API allows users to access category colors associated with Outlook items stored in OLM files. The following C# code examples provide more reference for users.
Here’s how you can get all categories from OLM storage:
using (var olm = OlmStorage.FromFile("storage.olm")) { var categories = olm.GetCategories(); foreach (var category in categories) { Console.WriteLine($"Category name: {category.Name}"); //Color is represented as a hexadecimal value: #rrggbb Console.WriteLine($"Category color: {category.Color}"); } }
And the following code snippet how to obtain a message category color:
foreach (var msg in olm.EnumerateMessages(folder)) { if (msg.Categories != null) { foreach (var msgCategory in msg.Categories) { Console.WriteLine($"Category name: {msgCategory}"); var categoryColor = cat.First(c => c.Name.Equals(msgCategory, StringComparison.OrdinalIgnoreCase)).Color; Console.WriteLine($"Category color: {categoryColor}"); } } }
We have also fixed several bugs in this release for an optimized API usage experience.
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Email for .NET 24.2 Release Notes.