预约身体问题 [英] Appointment Body problem
问题描述
我想阅读callendar约会,我获得与约会相关的所有属性,但是当尝试访问myCalendarApt.body.value.tostring时,它说"对象引用未设置为对象的实例"
I want to read callendar appointment, I get all the properties related to appointment but when try accessing myCalendarApt.body.value.tostring, it says "object reference not set to an instance of an object"
我正在使用Exchange Service Managed API。有人可以给我一个如何做的例子。 MSDN代码示例有一个创建它,但没有任何东西与阅读约会。
I am using Exchange Service Managed API. Can someone provide me with a example to how to do it. The MSDN code samples had one to create it but nothing related to reading a appointment.
推荐答案
我想要阅读callendar约会,我获得了与约会相关的所有属性,但是当我尝试访问myCalendarApt.body.value.tostring时,它表示"对象引用未设置为对象的实例"
I want to read callendar appointment, I get all the properties related to appointment but when try accessing myCalendarApt.body.value.tostring, it says "object reference not set to an instance of an object"
我正在使用Exchange Service Managed API。有人可以给我一个如何做的例子。 MSDN代码示例有一个用于创建它,但与阅读约会无关。
I am using Exchange Service Managed API. Can someone provide me with a example to how to do it. The MSDN code samples had one to create it but nothing related to reading a appointment.
您好,您需要加载body属性。使用
Hi, you need to load body property. Use
PropertySet props = new PropertySet(BasePropertySet.FirstClassProperties);
PropertySet props = new PropertySet(BasePropertySet.FirstClassProperties);
props.Add (ItemSchema.Body);
props.Add(ItemSchema.Body);
item.Load(道具);
item.Load(props);
然后body属性不会为空。
Then body property will not be empty.
这篇关于预约身体问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!