繁体   English   中英

Outlook 2016甚至对于使用EWS API创建的会议也显示约会图标

[英]Outlook 2016 showing appointment Icon even for meetings created with EWS API

我正在创建约会并使用EWS托管API开会,但是,我发现Icon在Outlook 2016中出现错误。

使用msdn示例创建会议`ExchangeService service = GetExchangeService(); 预约会议=新的预约(服务);

        // Set the properties on the meeting object to create the meeting.
        meeting.Subject = "EWS : Meeting";
        meeting.Body = "Let's learn to really work as a team and then have lunch!";
        meeting.Start = DateTime.Now.AddDays(2);
        meeting.End = meeting.Start.AddHours(4);
        meeting.Location = "Conference Room 12";
        meeting.RequiredAttendees.Add("attendee1");
        meeting.RequiredAttendees.Add("attendee2");
        meeting.ReminderMinutesBeforeStart = 60;

        //// Save the meeting to the Calendar folder and send the meeting request.
        meeting.Save(SendInvitationsMode.SendToAllAndSaveCopy);

        // Verify that the meeting was created.
        Item item = Item.Bind(service, meeting.Id, new PropertySet(BasePropertySet.FirstClassProperties));
        Console.WriteLine("\nMeeting created: " + item.Subject + "\n");`

但是图标就像这样 Outlook图片 在此,将在Outlook中手动创建以API创建的以“ EWS”开头的主题和以“ Outlook”为主题的主题。 Outlook会议具有不同的图标。

任何解决此问题的方法?

您可以尝试将PR_Icon_Index属性设置为https://msdn.microsoft.com/zh-cn/library/office/cc815472.aspx ,对于单个实例会议,应该可以使用Extended属性将其设置为0x00000402。

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM