获取会议组织者邮件地址EWS API

and*_*pfr 6 c# exchangewebservices

我想通过EWS API获取会议组织者邮件地址.目前我只是获得了我约会项目的一些属性.我听说你可以设置你想要的属性.我的代码看起来像这样:

CalendarView cview = new CalendarView(start, end);
                    cview.PropertySet = new PropertySet(BasePropertySet.FirstClassProperties);
                    FindItemsResults<Appointment> appResults = calenFolder.FindAppointments(cview);
Run Code Online (Sandbox Code Playgroud)

Ahm*_*adi -1

约会项目中有一个属性,即 Organizer.Address

因此,如果您有名为 Appointment 的约会变量,以下代码将检索组织者地址

Var address = appointment.Organizer.Address;
Run Code Online (Sandbox Code Playgroud)

尝试使用此代码

var appointments = _service.FindAppointments(WellKnownFolderName.Calendar, new CalendarView(start,end));
foreach (var appointment in appointments)
{System.Diagnose.Writeline(appointment.Organizer.Address)}
Run Code Online (Sandbox Code Playgroud)

  • 是的,这是真的。但该属性始终为空。 (2认同)