我使用Outlook兌換從Outlook訪問所有規則。 我們如何才能在c#中使用Outlook Redemption獲取RDORules? 我試圖訪問這個使用下面的代碼Outlook兌換:如何從c#中的Outlook訪問RDORules或規則#
Microsoft.Office.Interop.Outlook.Application app = new Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook._NameSpace ns = app.GetNamespace("MAPI");
Redemption.RDOSessionClass rdoSession = new Redemption.RDOSessionClass();
rdoSession.MAPIOBJECT = ns.MAPIOBJECT;
rdoSession.Stores.DefaultStore.Rules - Here Rules property not exist.
原因是rdoSession.Stores.DefaultStore
回報RDOStore對象和規則財產RDOExchangeStore對象存在。
我無法訪問RDOExchangeStore對象。導致商店種類爲 「skPstUnicode」 有什麼方法可以訪問RDORules嗎?