如何将UserProperty添加到Outlook约会项

时间:2013-01-11 09:54:19

标签: .net outlook

我正在开发一个outlook addin,我正在尝试将UserProperty添加到appointmentItem。但是我第一次得到UnauthorizedAccessException。当我第二次调用该方法时,它可以工作,并且UserProperty已成功添加到约会中。更改属性的名称后出现问题。在添加此属性之前,我是否必须以某种方式注册该属性或执行其他操作?

Appointment.AddCustomProperty(AppointmentItem, "CRMConKat", OlUserPropertyType.olText, cat.katName)

1 个答案:

答案 0 :(得分:0)

没有AddUserProperty方法。你的意思是你打电话给AppointmentItem.UserProperties.Add?
你能修改任何其他预约属性吗?
您是否在所有约会中都收到此错误?
如何开设预约? 你是怎么改变房产的名称的?你的意思是它之前已经设定过吗?

相关问题