简体   繁体   English

如何在托管的Exchange Web服务中更改AppointmentStatus

[英]How to change AppointmentStatus in managed Exchange Web Services

I need to change appointment status to meeting, so that it invitations can be send by one click. 我需要将约会状态更改为会议,以便一键发送邀请。 But Appointment.AppointmentStatus and Appointment.IsMeeeting are read only properties. 但是Appointment.AppointmentStatusAppointment.IsMeeeting是只读属性。 I've found, using reflector, that PropertyBag class is used for setting and getting items properties, but it's also internal. 使用反射器,我发现PropertyBag类用于设置和获取项属性,但它也是内部的。 Can I change this properties somehow? 我可以以某种方式更改此属性吗?

I manage to do it. 我设法做到了。 Steps are not so simple and logical, but here they are: 步骤不是那么简单和合乎逻辑,但是在这里是:

var extendedProperty = new ExtendedPropertyDefinition(new Guid("00062002-0000-0000-C000-000000000046"), 0x8217, MapiPropertyType.Integer);
meeting.SetExtendedProperty(extendedProperty, 1);

where Guid is PropertySet of appointments, and that strange number is MeetingStatus property id. 其中Guid是约会的PropertySet,而那个奇怪的数字是MeetingStatus属性ID。 And that's all. 就这样。 "Send" button is active by default. 默认情况下,“发送”按钮处于活动状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用Exchange Web服务托管API列出这些文件夹中的所有文件夹和文件? - How to list all folders and files in those folders using Exchange Web Services Managed API? Exchange Web服务托管API:如何通过FindItem方法执行重复扩展? - Exchange Web Services Managed API: How can I perform Recurrence Expansion through the FindItem Method? 如何使用Exchange Web Services在C#中更改电子邮件主题 - How to change email subject in C# using Exchange Web Services Folder.Bind - “Id格式错误” - Exchange Web服务托管API - Folder.Bind - “Id is malformed” - Exchange Web Services Managed API 如何使用Exchange Web Services 2010托管API获取文件夹大小? - How do I get folder size with Exchange Web Services 2010 Managed API? 如何使用 C# 和 Exchange Web Services Managed API 获取文件夹的策略? - How to get a folder's policy using C# and Exchange Web Services Managed API? Exchange Web服务托管API:访问其他用户项 - Exchange Web Services Managed API: Accessing other users items 服务wsdl交换Web服务 - services wsdl exchange web services 从Exchange Web服务托管API获取收件箱中的所有邮件,并将其存储为.eml文件 - Fetching all mails in Inbox from Exchange Web Services Managed API and storing them as a .eml files 使用C#中的Exchange Web服务托管API检索错误的邮箱项目 - Wrong mailbox items being retrieved using Exchange Web Services managed API in C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM