Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Exchangewebservices Appointment.Bind()和邮箱_Exchangewebservices - Fatal编程技术网

Exchangewebservices Appointment.Bind()和邮箱

Exchangewebservices Appointment.Bind()和邮箱,exchangewebservices,Exchangewebservices,我通过其唯一ID检索约会。现在我想找出它所在的邮箱 我尝试使用appointment.Organizer,但这不适用于会议或正常约会-因为约会可以在邮箱之间移动,所以组织者可能与日历中有约会的用户不同 如果只提供约会和ExchangeService,是否有获取文件夹的功能?如果要获取与特定EWSId关联的邮箱的SMTP地址,一种可行的方法是使用convertId将EWSId转换为StoreId,只需在邮箱字段中使用通用邮箱地址,然后返回结果(如果该ID良好)应包含与其相关联的邮箱

我通过其唯一ID检索约会。现在我想找出它所在的邮箱

我尝试使用appointment.Organizer,但这不适用于会议或正常约会-因为约会可以在邮箱之间移动,所以组织者可能与日历中有约会的用户不同


如果只提供约会和ExchangeService,是否有获取文件夹的功能?

如果要获取与特定EWSId关联的邮箱的SMTP地址,一种可行的方法是使用convertId将EWSId转换为StoreId,只需在邮箱字段中使用通用邮箱地址,然后返回结果(如果该ID良好)应包含与其相关联的邮箱

            String EWSId = "AQMkADY4ZDQ4M2UyLTRhYjItNDhkYy1hMG...";
        AlternateId aiRequest = new AlternateId();
        aiRequest.UniqueId = EWSId;
        aiRequest.Mailbox = "user@mailbox.com";
        aiRequest.Format = IdFormat.EwsId;

        AlternateId aiResultsStore  = (AlternateId)service.ConvertId(aiRequest, IdFormat.StoreId);
        Console.WriteLine(aiResultsStore.Mailbox);
干杯
格伦

`aiRequest.Mailbox='user@mailbox.com“;`-似乎我首先需要输入我想要获得的值。:(不,您这样输入应该是一个在您的组织中无法解析的地址(例如user@mailbox.com(应该很好)。请尝试一下,如果它不起作用,请告诉我们。如果您想知道这样做的应用程序,请查看EWS编辑器