获取当前EWS会话的displayname或其他帐户属性? [英] Get displayname or other account properties of current EWS session?
本文介绍了获取当前EWS会话的displayname或其他帐户属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以我有一个有效的会话,可以读取/创建项目,使用:
service.Credentials = new WebCredentials(strUsername,strPassword,strDomain);
So I have a valid session and can read/create items, using:
service.Credentials = new WebCredentials(strUsername, strPassword, strDomain);
service.AutodiscoverUrl(strUsername,ValidateRedirectionUrlCallback);
如何检索当前已验证用户的显示名称?
即MessageBox.show("您当前是登录为:" + userDisplayName)??
谢谢,
Brian
service.AutodiscoverUrl(strUsername, ValidateRedirectionUrlCallback);
How can I retrieve the currently authenticated user's Display name?
ie MessageBox.show( "You are currently signed in as: " + userDisplayName ) ??
Thanks,
Brian
推荐答案
您必须致电ResolveNames并输入您用于自动发现的地址。这将为您提供一个包含您所寻求信息的联系实例。
亲切的问候,
Henning Krause
Hi,
you'll have to call ResolveNames and put in the address you used for autodiscovery. This will give you a Contact instance with the information you seek.
Kind regards,
Henning Krause
这篇关于获取当前EWS会话的displayname或其他帐户属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文