【发布时间】:2018-06-28 01:24:44
【问题描述】:
我正在尝试从我的 c# 程序中读取组织中其他用户的外出状态和消息。我们正在本地运行 Exchange 2013。
此应用程序作为 Active Directory 帐户运行(具有自己的交换邮箱),我无法使用模拟。
我花了一些时间尝试类似问题的解决方案,例如:
- Retrieve out of office Status using EWS 2.0这个是冒充的
- Read out of office from exchange server for other users我没有使用 Outlook 对象模型
- How to get Out of Office for another mailbox 再次没有冒充我
-
http://gsexdev.blogspot.com/2011/11/using-mailtips-in-ews-to-get-oof-out-of.html 我没有提到
ExchangeServiceBinding,即使我使用的是Microsoft.Exchange.WebServices.Data; -
http://blogs.msdn.com/b/devmsg/archive/2014/06/03/ews-how-to-retrieve-the-oof-out-of-facility-settings-message-using-ews-for-an-exchange-user.aspx 这个作为参数,
urlname,我不确定那个 url 来自哪里。不过,这似乎是最有前途的,有什么想法吗?
我想得到类似的东西:
public void checkOOF(string userEmail){
bool isOOF = checkstuff(userEmail);
string message;
if(isOOF)
message = getOOFMessage(userEmail);
}
请帮我理解,谢谢。
【问题讨论】:
-
没有 cmets 的蹩脚投票?在没有反馈的情况下如何改进问题?
-
我正在研究相同的场景,这是涵盖一系列选项的最详细的帖子。我也不知道为什么有人会否决你,因为你说没有 cmets 所以没有迹象表明出了什么问题。
-
@Myzifer 我能够得到我现在使用的问题的确切解决方案,我只是将其发布为答案。希望对您有所帮助。
标签: c# exchangewebservices exchange-server-2013