Properties 物业顾问展望 PropertyAccessor opa=outlookitem.PropertyAccessor; opa.SetProperty(“http://schemas.microsoft.com/mapi/string/{FFF4075-D92F-4C11-9E14-92701F001EB3}/Id,“100”); var val=opa.GetProperty(“http://schemas.microsoft.com/mapi/string/{FFF4075-D92F-4C11-9E14-92701F001EB3}/Id”);

Properties 物业顾问展望 PropertyAccessor opa=outlookitem.PropertyAccessor; opa.SetProperty(“http://schemas.microsoft.com/mapi/string/{FFF4075-D92F-4C11-9E14-92701F001EB3}/Id,“100”); var val=opa.GetProperty(“http://schemas.microsoft.com/mapi/string/{FFF4075-D92F-4C11-9E14-92701F001EB3}/Id”);,properties,outlook,Properties,Outlook,当我在我自己的日历(了望项目)上尝试这一点时,它工作得很好。但是,当我在Outlook中添加同事日历时,在那里尝试一下,我在调用GetProperty时遇到以下异常 有什么想法吗 An exception of type 'System.Runtime.InteropServices.COMException' occurred in *** but was not handled in user code Additional information: The property "http:

当我在我自己的日历(了望项目)上尝试这一点时,它工作得很好。但是,当我在Outlook中添加同事日历时,在那里尝试一下,我在调用GetProperty时遇到以下异常

有什么想法吗

An exception of type 'System.Runtime.InteropServices.COMException' occurred in *** but was not handled in user code

Additional information: The property "http://schemas.microsoft.com/mapi/string/{FFF40745-D92F-4C11-9E14-92701F001EB3}/Id" is unknown or cannot be found.

必须先保存项目,然后才能访问属性。不是这样的。谢谢

这是您的实际代码吗?您是否真的立即设置并读取该属性?或者两次调用之间有间隔吗?两次调用之间有间隔,这会产生相同的错误。这只是为了测试是否可能在第二个代码段运行之前重新创建约会?如果Outlook收到会议更新,则可能发生这种情况。不要这样认为。但是谢谢你的建议。它变得更奇怪了。似乎如果我将权限级别设置为忙/闲时间、主题、位置,我就可以阅读它了。我在发布EditorI时拥有的权限必须在访问该属性之前保存该项。不是这样的。谢谢