我使用以下代码访问Outlook 2010缓存并进行修改。
请让我知道如何将条目更改回收件箱邮件存储区。
Microsoft.Office.Interop.Outlook.Application oApp = Globals.ThisAddIn.Application;
Microsoft.Office.Interop.Outlook.MAPIFolder inboxFolder = oApp.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderInbox);
StorageItem storage = inboxFolder.GetStorage("IPM.Configuration.Autocomplete", OlStorageIdentifierType.olIdentifyByMessageClass);
PropertyAccessor propertyAcc = storage.PropertyAccessor;
byte[] got = propertyAcc.GetProperty("http://schemas.microsoft.com/mapi/proptag/0x7C090102");
由于 Jaspreet Singh
答案 0 :(得分:1)
您需要致电propertyAcc.SetProperty
。
您是否在解析自动填充缓存blob?是否使用Redemption选项?它将自动填充功能公开为RDONicknames集合:
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
set Nicknames = Session.GetNicknames
set NickName = Nicknames.Add("Joe The User <test@dimastr.com>")
Nicknames.Save