我正在创建约会并与EWS托管API会面,但是,我发现Outlook 2016中的Icon出现错误。
使用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");`
但是图标就像这样。 这里,以使用API创建的“EWS”开头的主题和带有“Outlook”的主题在outlook中手动创建。 Outlook会议有不同的Icon。
此问题的解决方法是什么?
答案 0 :(得分:0)
您可以尝试设置PR_Icon_Index属性https://msdn.microsoft.com/en-us/library/office/cc815472.aspx,您应该能够使用扩展属性将其设置为0x00000402以进行单个实例会议。