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)
| 归档时间: |
|
| 查看次数: |
4204 次 |
| 最近记录: |