参考MSDN上Programming Applications for Microsoft Office Outlook 2007第11章: 搜索Outlook数据
Table 11-4. Keywords for Outlook calendar folders (表 11-4. Outlook日历文件夹的关键词)
Table 11-4. Keywords for Outlook calendar folders (表 11-4. Outlook日历文件夹的关键词)
How to Get Availability Details in Office 365
Get the availability results and display them (获取为占用结果并显示)GetUserAvailabilityResults userAvailabilityResults = service.GetUserAvailability(attendees,
timeWindow, AvailabilityData.FreeBusyAndSuggestions, availabilityOptions);
Console.WriteLine("{0,-15}{1,-21}{2,-11}{3,-14}{4,-10}{5,-9}", "FreeBusyStatus",
"StartTime", "EndTime", "Subject", "Location", "IsMeeting");
foreach (AttendeeAvailability userAvailabilityResult in
userAvailabilityResults.AttendeesAvailability)
{
if (userAvailabilityResult.ErrorCode.CompareTo(ServiceError.NoError) == 0)
{
foreach (CalendarEvent calendarEvent in userAvailabilityResult.CalendarEvents)
{
Console.WriteLine("{0,-15}{1,-21}{2,-11}{3,-14}{4,-10}{5,-9}",
calendarEvent.FreeBusyStatus,
calendarEvent.StartTime.ToShortDateString() + " " +
calendarEvent.StartTime.ToShortTimeString(),
calendarEvent.EndTime.ToShortTimeString(),
calendarEvent.Details.Subject,
calendarEvent.Details.Location,
calendarEvent.Details.IsMeeting);
}
}
}