参考MSDN上Programming Applications for Microsoft Office Outlook 2007第11章: 搜索Outlook数据
Table 11-4. Keywords for Outlook calendar folders (表 11-4. Outlook日历文件夹的关键词)

解决方案 »

  1.   

    outlook solution里面没看到这样的例子额
      

  2.   

    你用的是Office 365吗?下载微软的代码
    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); 
            } 
        } 

      

  3.   

    这好像不行唉。里面都是用的EXCHANGE,我把头文件包进去就出问题了额这些程序为什么都没有头文件额 。
      

  4.   

    程序在service.AutodiscoverUrl处无法继续执行了