簡體   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