Since the solution store is created as hidden items in a folder, you can only store data if the storage provider supports hidden items and the client has write permissions to this folder.
private string GetWorkHoursXML()
{
try
{
Outlook.StorageItem storage =
Application.Session.GetDefaultFolder(
Outlook.OlDefaultFolders.olFolderCalendar).GetStorage(
"IPM.Configuration.WorkHours",
Outlook.OlStorageIdentifierType.olIdentifyByMessageClass);
Outlook.PropertyAccessor pa = storage.PropertyAccessor;
byte[] rawXmlBytes = (byte[])pa.GetProperty(
"http://schemas.microsoft.com/mapi/proptag/0x7C080102");
return System.Text.Encoding.ASCII.GetString(rawXmlBytes);
}
catch
{
return string.Empty;
}
}
See How to store decision-specific data as a hidden message in a folder for more information.
source
share