本文介绍了无法使用C#从Exchg 2013检索任何房间列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的交换服务有效.我可以通过Outlook查看所有房间,也可以通过Powershell查看所有房间.但是,使用此代码段,我无法找回任何房间

My exchange services works. I can see all rooms by Outlook and Can see all rooms through Powershell.But with this snippet I cannot retrieve any room

        ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_SP1);
        service.UseDefaultCredentials = true;
        service.Url = new Uri("https://my server/ews/exchange.asmx");
        service.AutodiscoverUrl("[email protected]", RedirectionCallback);

        EmailAddressCollection myRoomLists = service.GetRoomLists();

        // Display the room lists.
        foreach (EmailAddress address in myRoomLists)
        {
            Console.WriteLine("Email Address: {0} Mailbox Type: {1}", address.Address, address.MailboxType);
        }

列表为空!

推荐答案

听起来您的Exchange管理员尚未配置任何房间列表. EWS取决于GAL中是否存在会议室列表才能正常工作.请参阅 https://technet.microsoft.com/en -us/library/jj215781(v = exchg.150).aspx 了解详情.

It sounds like your Exchange administrator has not configured any room lists. EWS depends on the presence of room lists in the GAL to work. See https://technet.microsoft.com/en-us/library/jj215781(v=exchg.150).aspx for details.

这篇关于无法使用C#从Exchg 2013检索任何房间列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 19:13